check whether a notification nametag exists

This commit is contained in:
Vipra 2023-07-20 11:14:50 +02:00 committed by Jasmin
parent 2b198d5bba
commit e518c4d4bc

View file

@ -331,7 +331,8 @@ async function addProplate(element) {
let accountName = getAccountName(accountNameEl, "title");
if (!accountName) accountName = accountNameFromURL(getAccountName(accountNameEl, "href"));
let nametagEl = accountNameEl;
let nametagEl = getNametagEl(element, ".notification__display-name");
if (!nametagEl) return;
element.setAttribute("protoots-checked", "true");
generateProPlate(statusId, accountName, nametagEl, "notification");