mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[mastodon-client] Fix mentions in user bios
This commit is contained in:
parent
1ff5102e34
commit
44c70df1a6
1 changed files with 5 additions and 2 deletions
|
@ -139,12 +139,15 @@ export class MfmHelpers {
|
|||
remoteUser.username === username && remoteUser.host === host,
|
||||
);
|
||||
const localpart = `@${username}`;
|
||||
const acct = host === config.domain ? localpart: node.props.acct;
|
||||
const isLocal = host === config.domain || host === null;
|
||||
const acct = isLocal ? localpart: node.props.acct;
|
||||
a.href = remoteUserInfo
|
||||
? remoteUserInfo.url
|
||||
? remoteUserInfo.url
|
||||
: remoteUserInfo.uri
|
||||
: `${config.url}/${acct}`;
|
||||
: isLocal
|
||||
? `${config.url}/${acct}`
|
||||
: `https://${host}/${localpart}`;
|
||||
a.className = "u-url mention";
|
||||
const span = doc.createElement("span");
|
||||
span.textContent = username;
|
||||
|
|
Loading…
Reference in a new issue