mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[mastodon-client] Correctly render remote mentions of local users
This commit is contained in:
parent
73895e856c
commit
f5c6cba3a6
@ -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 New Issue
Block a user