1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 22:56:09 +09:00

fix: leading space when hiding mentions

This commit is contained in:
patak 2023-01-19 12:12:58 +01:00
parent fab1eb13b3
commit 359cc4935b

View File

@ -529,7 +529,7 @@ function transformCollapseMentions(status?: mastodon.v1.Status, inReplyToStatus?
// But this covers the majority of cases.
const showMentions = !(contextualMentionsCount === 0 || (mentionsCount === 1 && status?.inReplyToAccountId))
const grouped = contextualMentionsCount > 2
if (grouped)
if (!showMentions || grouped)
trimContentStart?.()
const contextualChildren = children.slice(mentions.length)