Skip to content

Commit

Permalink
Why some posts have inReplyToAccountId but doesn't have inReplyToId?
Browse files Browse the repository at this point in the history
Not sure if this will cause other bugs
  • Loading branch information
cheeaun committed Sep 4, 2023
1 parent b472e49 commit 20dd843
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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" />
Expand Down

0 comments on commit 20dd843

Please sign in to comment.