Fix some accounts not working

All these webfinger/custom-server/moving-instances things are very annoying
pull/20/head
Lim Chee Aun 2022-12-22 18:25:18 +08:00
rodzic 7b6d30f37d
commit 122f6877c9
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -354,9 +354,12 @@ function Status({
).innerText
.trim()
.replace(/^@/, '');
const url = target.getAttribute('href');
const mention = mentions.find(
(mention) =>
mention.username === username || mention.acct === username,
mention.username === username ||
mention.acct === username ||
mention.url === url,
);
if (mention) {
states.showAccount = mention.acct;