mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[mastodon-client] Only display localpart for mentions in mfm-to-html
This commit is contained in:
parent
f5c6cba3a6
commit
1fdea9866a
1 changed files with 3 additions and 2 deletions
|
@ -127,14 +127,15 @@ export class MfmHelpers {
|
|||
(remoteUser) =>
|
||||
remoteUser.username === username && remoteUser.host === host,
|
||||
);
|
||||
const acct = host === config.domain ? `@${username}` : node.props.acct;
|
||||
const localpart = `@${username}`;
|
||||
const acct = host === config.domain ? localpart: node.props.acct;
|
||||
a.href = remoteUserInfo
|
||||
? remoteUserInfo.url
|
||||
? remoteUserInfo.url
|
||||
: remoteUserInfo.uri
|
||||
: `${config.url}/${acct}`;
|
||||
a.className = "u-url mention";
|
||||
a.textContent = acct;
|
||||
a.textContent = localpart;
|
||||
return a;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue