From 69c1bd8b6a353ac167bddaf6e0952209b3d89def Mon Sep 17 00:00:00 2001 From: Zaidhaan Date: Wed, 8 Mar 2023 02:41:00 +0800 Subject: [PATCH] fix: wrap non-sensitive spoilers in spoiler status (#1864) --- components/status/StatusContent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/status/StatusContent.vue b/components/status/StatusContent.vue index b4dbb6d1..7dc937c6 100644 --- a/components/status/StatusContent.vue +++ b/components/status/StatusContent.vue @@ -20,7 +20,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 hasSensitiveSpoilerOrMedia = $computed(() => status.sensitive && (!!status.spoilerText || !!status.mediaAttachments.length)) +const hasSpoilerOrSensitiveMedia = $computed(() => !!status.spoilerText || (status.sensitive && !!status.mediaAttachments.length))