mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[backend] Ignore capitalization for remoteuserinfo in mfm-to-html
This commit is contained in:
parent
bab61d2a32
commit
ef14e0221b
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ export function toHtml(
|
|||
const { username, host, acct } = node.props;
|
||||
const remoteUserInfo = mentionedRemoteUsers.find(
|
||||
(remoteUser) =>
|
||||
remoteUser.username === username && remoteUser.host === host,
|
||||
remoteUser.username.toLowerCase() === username.toLowerCase() && remoteUser.host === host,
|
||||
);
|
||||
a.href = remoteUserInfo
|
||||
? remoteUserInfo.url
|
||||
|
|
|
@ -140,7 +140,7 @@ export class MfmHelpers {
|
|||
const { username, host} = node.props;
|
||||
const remoteUserInfo = mentionedRemoteUsers.find(
|
||||
(remoteUser) =>
|
||||
remoteUser.username === username && remoteUser.host === host,
|
||||
remoteUser.username.toLowerCase() === username.toLowerCase() && remoteUser.host === host,
|
||||
);
|
||||
const localpart = `@${username}`;
|
||||
const isLocal = host === config.domain || (host == null && objectHost == null);
|
||||
|
|
Loading…
Reference in a new issue