From 20dd84340921a8255150a921c82c24e3c0446f73 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 5 Sep 2023 02:50:58 +0800 Subject: [PATCH] Why some posts have inReplyToAccountId but doesn't have inReplyToId? Not sure if this will cause other bugs --- src/components/status.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index d47b741..5f85f23 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -837,7 +837,9 @@ function Status({ ref={statusRef} tabindex="-1" class={`status ${ - !withinContext && inReplyToAccount ? 'status-reply-to' : '' + !withinContext && inReplyToId && inReplyToAccount + ? 'status-reply-to' + : '' } visibility-${visibility} ${_pinned ? 'status-pinned' : ''} ${ { s: 'small', @@ -1003,7 +1005,7 @@ function Status({ )} {!withinContext && ( <> - {inReplyToAccountId === status.account?.id || + {(!!inReplyToId && inReplyToAccountId === status.account?.id) || !!snapStates.statusThreadNumber[sKey] ? (