1
0
Fork 0

Fix some accounts not working

All these webfinger/custom-server/moving-instances things are very annoying
This commit is contained in:
Lim Chee Aun 2022-12-22 18:25:18 +08:00
parent 7b6d30f37d
commit 122f6877c9

View file

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