mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-10 14:14:19 +00:00
do not allow "null" as an account name
This commit is contained in:
parent
5cc45f5d56
commit
43adaf4a61
1 changed files with 4 additions and 2 deletions
|
@ -30,7 +30,7 @@ import {
|
|||
accountNameFromURL,
|
||||
addTypeAttribute,
|
||||
normaliseAccountName,
|
||||
} from "../libs/protootshelpers";
|
||||
} from "../libs/protootshelpers.js";
|
||||
|
||||
//before anything else, check whether we're on a Mastodon page
|
||||
checkSite();
|
||||
|
@ -330,7 +330,9 @@ async function addProplate(element) {
|
|||
if (!accountNameEl) accountNameEl = getAccountNameEl(element, ".status__display-name");
|
||||
|
||||
let accountName = getAccountName(accountNameEl, "title");
|
||||
if (!accountName) accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
|
||||
if (accountName == "null")
|
||||
accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
|
||||
if (accountName == "null") return;
|
||||
|
||||
let nametagEl = getNametagEl(element, ".notification__display-name");
|
||||
if (!nametagEl) return;
|
||||
|
|
Loading…
Reference in a new issue