Emoji: Fixes issue with handled link not correctly showing remote users (#36403)

This commit is contained in:
Echo 2025-10-08 19:17:03 +02:00 committed by GitHub
commit 5bc7c4b7e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 32 deletions

View file

@ -48,9 +48,8 @@ export const EmbeddedStatusContent: React.FC<{
);
const htmlHandlers = useElementHandledLink({
hashtagAccountId: status.get('account') as string | undefined,
hrefToMentionAccountId(href) {
const mention = mentions.find((item) => item.url === href);
return mention?.id;
hrefToMention(href) {
return mentions.find((item) => item.url === href);
},
});