1
0
Fork 0

Why some posts have inReplyToAccountId but doesn't have inReplyToId?

Not sure if this will cause other bugs
This commit is contained in:
Lim Chee Aun 2023-09-05 02:50:58 +08:00
parent b472e496d1
commit 20dd843409

View file

@ -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] ? (
<div class="status-thread-badge">
<Icon icon="thread" size="s" />