From 2076750f852d315864b1fcea799686500d4cce4b Mon Sep 17 00:00:00 2001 From: userquin Date: Wed, 10 May 2023 13:20:22 +0200 Subject: [PATCH] chore: check spoiler text has length --- components/status/StatusContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/status/StatusContent.vue b/components/status/StatusContent.vue index 7eb94c0f..3ef2e3c5 100644 --- a/components/status/StatusContent.vue +++ b/components/status/StatusContent.vue @@ -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(