mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[mastodon-client] Correctly render remote mentions of local users
This commit is contained in:
parent
73895e856c
commit
f5c6cba3a6
1 changed files with 2 additions and 1 deletions
|
@ -122,11 +122,12 @@ export class MfmHelpers {
|
|||
|
||||
mention(node) {
|
||||
const a = doc.createElement("a");
|
||||
const { username, host, acct } = node.props;
|
||||
const { username, host} = node.props;
|
||||
const remoteUserInfo = mentionedRemoteUsers.find(
|
||||
(remoteUser) =>
|
||||
remoteUser.username === username && remoteUser.host === host,
|
||||
);
|
||||
const acct = host === config.domain ? `@${username}` : node.props.acct;
|
||||
a.href = remoteUserInfo
|
||||
? remoteUserInfo.url
|
||||
? remoteUserInfo.url
|
||||
|
|
Loading…
Reference in a new issue