mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Only show reply badge if not inside mentions
This commit is contained in:
parent
f8fac1294b
commit
55ad4be580
1 changed files with 10 additions and 11 deletions
|
@ -273,25 +273,24 @@ function Status({
|
|||
))}
|
||||
</div>
|
||||
{inReplyToAccountId && !withinContext && size !== 's' && (
|
||||
<div
|
||||
class={`status-${
|
||||
inReplyToAccountId === status.account.id ? 'thread' : 'reply'
|
||||
}-badge`}
|
||||
>
|
||||
<>
|
||||
{inReplyToAccountId === status.account.id ? (
|
||||
<>
|
||||
<div class="status-thread-badge">
|
||||
<Icon icon="thread" size="s" />
|
||||
Thread
|
||||
</>
|
||||
</div>
|
||||
) : (
|
||||
!!inReplyToAccount && (
|
||||
<>
|
||||
!!inReplyToAccount &&
|
||||
!mentions.find((mention) => {
|
||||
return mention.id === inReplyToAccountId;
|
||||
}) && (
|
||||
<div class="status-reply-badge">
|
||||
<Icon icon="reply" />{' '}
|
||||
<NameText account={inReplyToAccount} short />
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<div
|
||||
class={`content-container ${
|
||||
|
|
Loading…
Reference in a new issue