From 122f6877c913f1d9e11cf7c3fddaf4250c59f5cf Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 22 Dec 2022 18:25:18 +0800 Subject: [PATCH] Fix some accounts not working All these webfinger/custom-server/moving-instances things are very annoying --- src/components/status.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 57886d77..4e7fe7d1 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -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;