From a196540d66360d5c77972e754f935f7dc2d7ee80 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 27 Apr 2023 08:25:39 +0800 Subject: [PATCH] Differentiate between previewMode vs quoted When previewMode, auto-reveal spoiler --- src/components/status.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 0ed25459..edbb9b8f 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -211,7 +211,7 @@ function Status({ inReplyToAccountId === currentAccount || mentions?.find((mention) => mention.id === currentAccount); - const showSpoiler = !!snapStates.spoilers[id] || false; + const showSpoiler = previewMode || !!snapStates.spoilers[id] || false; if (reblog) { // If has statusID, means useItemID (cached in states) @@ -679,7 +679,7 @@ function Status({ }, ); - const showContextMenu = size !== 'l' && !previewMode && !_deleted; + const showContextMenu = size !== 'l' && !previewMode && !_deleted && !quoted; return (
Deleted - ) : url && !previewMode ? ( + ) : url && !previewMode && !quoted ? ( { instance={q.instance} size="s" quoted={level + 1} - previewMode /> );