fix: regression with media hidden (#2072)
This commit is contained in:
parent
4be5d81f17
commit
454ad18f1b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue