From bfacc5c33ffbd90215ba470160ef6e0369cb29a1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 23 Feb 2022 07:43:38 +0200 Subject: [PATCH] fd --- files/helpers/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 840560f52..daa3fd543 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -67,7 +67,7 @@ def NOTIFY_USERS(text, v): if id == 0: continue if word in text.lower() and id not in notify_users and v.id != id: notify_users.add(id) - soup = BeautifulSoup(text, 'xml') + soup = BeautifulSoup(text, 'html.parser') for mention in soup.find_all("a", href=re.compile("^\/id\/([0-9]+)")): id = int(mention["href"].split("/id/")[1]) if id != v.id: