From 454ad18f1bbc83806047988b67bdfc3f229410a5 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 6 May 2023 11:26:16 +0200 Subject: [PATCH] fix: regression with media hidden (#2072) --- components/status/StatusContent.vue | 2 +- locales/tl-PH.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/status/StatusContent.vue b/components/status/StatusContent.vue index 27bed9ab..1dbc5da3 100644 --- a/components/status/StatusContent.vue +++ b/components/status/StatusContent.vue @@ -22,7 +22,7 @@ const isFiltered = $computed(() => status.account.id !== currentUser.value?.acco // check spoiler text or media attachment // needed to handle accounts that mark all their posts as sensitive const hasSpoilerOrSensitiveMedia = $computed(() => !!status.spoilerText || (status.sensitive && !!status.mediaAttachments.length)) -const isSensitiveNonSpoiler = computed(() => status.sensitive && !status.spoilerText) +const isSensitiveNonSpoiler = computed(() => status.sensitive && !status.spoilerText && !!status.mediaAttachments.length) const hideAllMedia = computed( () => { return currentUser.value ? (getHideMediaByDefault(currentUser.value.account) && !!status.mediaAttachments.length) : false diff --git a/locales/tl-PH.json b/locales/tl-PH.json index 2ed9488b..afcc3e77 100644 --- a/locales/tl-PH.json +++ b/locales/tl-PH.json @@ -523,7 +523,7 @@ "replying_to": "Sumasagot kay {0}", "show_full_thread": "Ipakita ang buong thread", "someone": "isa", - "spoiler_media_hidden": "Nakatago and media", + "spoiler_media_hidden": "Nakatago ang media", "spoiler_show_less": "Ipakita nang mas kaunti", "spoiler_show_more": "Ipakita nang mas marami", "thread": "Thread",