Переглянути джерело

Merge pull request #4570 from pixelfed/staging

Staging
daniel 2 роки тому
батько
коміт
2a63ff1d40

+ 1 - 0
CHANGELOG.md

@@ -49,6 +49,7 @@
 - Update ApiV1Controller, hydrate reblog state in home timeline ([13bdaa2e](https://github.com/pixelfed/pixelfed/commit/13bdaa2e))
 - Update Timeline component, improve reblog support ([29de91e5](https://github.com/pixelfed/pixelfed/commit/29de91e5))
 - Update timeline settings, add photo reblogs only option ([e2705b9a](https://github.com/pixelfed/pixelfed/commit/e2705b9a))
+- Update PostContent, add text cw warning ([911504fa](https://github.com/pixelfed/pixelfed/commit/911504fa))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 ## [v0.11.8 (2023-05-29)](https://github.com/pixelfed/pixelfed/compare/v0.11.7...v0.11.8)

BIN
public/js/daci.chunk.b9e8578923bea3c3.js → public/js/daci.chunk.bfa9e4f459fec835.js


BIN
public/js/discover~findfriends.chunk.d691be73c68195ac.js → public/js/discover~findfriends.chunk.6bd4ddbabd979778.js


BIN
public/js/discover~memories.chunk.4f59af2dab851399.js → public/js/discover~memories.chunk.400f9f019bdb9fdf.js


BIN
public/js/discover~myhashtags.chunk.c973b20c8878052f.js → public/js/discover~myhashtags.chunk.ee5af357937cad2f.js


BIN
public/js/discover~serverfeed.chunk.8f3f1aaa21cefc1d.js → public/js/discover~serverfeed.chunk.fbe31eedcdafc87e.js


BIN
public/js/discover~settings.chunk.909aa0316f43235e.js


BIN
public/js/discover~settings.chunk.ef99ab7d5116b492.js


BIN
public/js/home.chunk.f5594d49a6bead99.js → public/js/home.chunk.bd623a430a5584c2.js


+ 0 - 0
public/js/home.chunk.f5594d49a6bead99.js.LICENSE.txt → public/js/home.chunk.bd623a430a5584c2.js.LICENSE.txt


BIN
public/js/landing.js


BIN
public/js/manifest.js


BIN
public/js/post.chunk.741e92852b834d92.js → public/js/post.chunk.729ca668f46545cb.js


+ 0 - 0
public/js/post.chunk.741e92852b834d92.js.LICENSE.txt → public/js/post.chunk.729ca668f46545cb.js.LICENSE.txt


BIN
public/js/profile.chunk.3f076e6eff0c5ede.js → public/js/profile.chunk.029572d9018fc65f.js


BIN
public/mix-manifest.json


+ 12 - 1
resources/assets/components/partials/post/PostContent.vue

@@ -138,7 +138,18 @@
 				<mixed-album-presenter :status="status" v-on:lightbox="toggleLightbox" v-on:togglecw="status.sensitive = false" style="border-radius:15px !important;object-fit: contain;background-color: #000;overflow: hidden;align-items:center" :class="{ fixedHeight: fixedHeight }"></mixed-album-presenter>
 			</div>
 
-			<div v-else-if="status.pf_type === 'text'"></div>
+			<div v-else-if="status.pf_type === 'text'">
+                <div v-if="status.sensitive" class="border m-3 p-5 rounded-lg">
+                    <p class="text-center">
+                        <i class="far fa-eye-slash fa-2x"></i>
+                    </p>
+                    <p class="text-center lead font-weight-bold mb-0">Sensitive Content</p>
+                    <p class="text-center">{{ status.spoiler_text && status.spoiler_text.length ? status.spoiler_text : 'This post may contain sensitive content' }}</p>
+                    <p class="text-center mb-0">
+                        <button class="btn btn-primary btn-sm font-weight-bold" @click="status.sensitive = false">See post</button>
+                    </p>
+                </div>
+            </div>
 
 			<div v-else class="bg-light rounded-lg d-flex align-items-center justify-content-center" style="height: 400px;">
 				<div>