Emoji: Fixes issue with handled link not correctly showing remote users (#36403)
This commit is contained in:
parent
b8444d9bb7
commit
5bc7c4b7e8
4 changed files with 42 additions and 32 deletions
|
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue