The mention is hidden *inside* spoiler text
This commit is contained in:
parent
8e19d098eb
commit
fea7145ac9
1 changed files with 24 additions and 19 deletions
|
@ -94,6 +94,7 @@ function Status({
|
||||||
filtered,
|
filtered,
|
||||||
card,
|
card,
|
||||||
createdAt,
|
createdAt,
|
||||||
|
inReplyToId,
|
||||||
inReplyToAccountId,
|
inReplyToAccountId,
|
||||||
content,
|
content,
|
||||||
mentions,
|
mentions,
|
||||||
|
@ -279,7 +280,10 @@ function Status({
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
{inReplyToAccountId && !withinContext && size !== 's' && (
|
{!!inReplyToId &&
|
||||||
|
!!inReplyToAccountId &&
|
||||||
|
!withinContext &&
|
||||||
|
size !== 's' && (
|
||||||
<>
|
<>
|
||||||
{inReplyToAccountId === status.account.id ? (
|
{inReplyToAccountId === status.account.id ? (
|
||||||
<div class="status-thread-badge">
|
<div class="status-thread-badge">
|
||||||
|
@ -288,9 +292,10 @@ function Status({
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
!!inReplyToAccount &&
|
!!inReplyToAccount &&
|
||||||
|
(!!spoilerText ||
|
||||||
!mentions.find((mention) => {
|
!mentions.find((mention) => {
|
||||||
return mention.id === inReplyToAccountId;
|
return mention.id === inReplyToAccountId;
|
||||||
}) && (
|
})) && (
|
||||||
<div class="status-reply-badge">
|
<div class="status-reply-badge">
|
||||||
<Icon icon="reply" />{' '}
|
<Icon icon="reply" />{' '}
|
||||||
<NameText account={inReplyToAccount} short />
|
<NameText account={inReplyToAccount} short />
|
||||||
|
|
Loading…
Add table
Reference in a new issue