mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix(ui): check empty spoiler text (#2092)
This commit is contained in:
parent
99077da1bf
commit
66484bac80
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,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 spoilerTextPresent = $computed(() => !!status.spoilerText && status.spoilerText.trim().length === 0)
|
||||
const spoilerTextPresent = $computed(() => !!status.spoilerText && status.spoilerText.trim().length > 0)
|
||||
const hasSpoilerOrSensitiveMedia = $computed(() => spoilerTextPresent || (status.sensitive && !!status.mediaAttachments.length))
|
||||
const isSensitiveNonSpoiler = computed(() => status.sensitive && !status.spoilerText && !!status.mediaAttachments.length)
|
||||
const hideAllMedia = computed(
|
||||
|
|
Loading…
Reference in a new issue