mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[backend] Ignore capitalization for remoteuserinfo in mfm-to-html
This commit is contained in:
parent
bab61d2a32
commit
ef14e0221b
@ -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 New Issue
Block a user