only get account name from url if title fails

This commit is contained in:
Vipra 2023-07-13 22:56:40 +02:00
parent c5518b1867
commit 885cc1387d

View file

@ -324,8 +324,9 @@ async function addProplate(element) {
let accountNameEl = getAccountNameEl(element, ".notification__display-name");
if (!accountNameEl) accountNameEl = getAccountNameEl(element, ".status__display-name");
let accountName = getAccountName(accountNameEl, "href");
accountName = accountNameFromURL(accountName);
let accountName = getAccountName(accountNameEl, "title");
if (!accountName) accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
let nametagEl = accountNameEl;