diff --git a/routes/_components/status/StatusMediaAttachments.html b/routes/_components/status/StatusMediaAttachments.html index eff8d34..953d013 100644 --- a/routes/_components/status/StatusMediaAttachments.html +++ b/routes/_components/status/StatusMediaAttachments.html @@ -1,4 +1,4 @@ -{{#if status.sensitive}} +{{#if status.sensitive || $markMediaAsSensitive}}
{{#if sensitiveShown}} diff --git a/routes/_store/store.js b/routes/_store/store.js index 625f871..3b18ccd 100644 --- a/routes/_store/store.js +++ b/routes/_store/store.js @@ -11,7 +11,8 @@ const KEYS_TO_STORE_IN_LOCAL_STORAGE = new Set([ "instanceThemes", "loggedInInstances", "loggedInInstancesInOrder", - "autoplayGifs" + "autoplayGifs", + "markMediaAsSensitive" ]) class PinaforeStore extends LocalStorageStore { @@ -29,6 +30,7 @@ const store = new PinaforeStore({ spoilersShown: {}, sensitivesShown: {}, autoplayGifs: false, + markMediaAsSensitive: false }) mixins(PinaforeStore) diff --git a/routes/settings/general.html b/routes/settings/general.html index 1565389..7c88770 100644 --- a/routes/settings/general.html +++ b/routes/settings/general.html @@ -13,6 +13,11 @@ bind:checked="$autoplayGifs" on:change="store.save()">
+
+ + +
@@ -20,14 +25,15 @@