mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 03:23:02 +00:00
only get account name from url if title fails
This commit is contained in:
parent
c5518b1867
commit
885cc1387d
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue