fix: regression with media hidden (#2072)

zio/stable
Ayo Ayco 2023-05-06 11:26:16 +02:00 committed by GitHub
parent 4be5d81f17
commit 454ad18f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const isFiltered = $computed(() => status.account.id !== currentUser.value?.acco
// check spoiler text or media attachment // check spoiler text or media attachment
// needed to handle accounts that mark all their posts as sensitive // needed to handle accounts that mark all their posts as sensitive
const hasSpoilerOrSensitiveMedia = $computed(() => !!status.spoilerText || (status.sensitive && !!status.mediaAttachments.length)) 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( const hideAllMedia = computed(
() => { () => {
return currentUser.value ? (getHideMediaByDefault(currentUser.value.account) && !!status.mediaAttachments.length) : false return currentUser.value ? (getHideMediaByDefault(currentUser.value.account) && !!status.mediaAttachments.length) : false

View File

@ -523,7 +523,7 @@
"replying_to": "Sumasagot kay {0}", "replying_to": "Sumasagot kay {0}",
"show_full_thread": "Ipakita ang buong thread", "show_full_thread": "Ipakita ang buong thread",
"someone": "isa", "someone": "isa",
"spoiler_media_hidden": "Nakatago and media", "spoiler_media_hidden": "Nakatago ang media",
"spoiler_show_less": "Ipakita nang mas kaunti", "spoiler_show_less": "Ipakita nang mas kaunti",
"spoiler_show_more": "Ipakita nang mas marami", "spoiler_show_more": "Ipakita nang mas marami",
"thread": "Thread", "thread": "Thread",