mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01: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