From 64715f5aa550b482f8f76f61192fb0a1d2d70929 Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 19 Mar 2023 20:29:25 +0100 Subject: [PATCH] [mastodon] Also dismiss notifications which have no status --- backend/src/kibicara/platforms/mastodon/bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/kibicara/platforms/mastodon/bot.py b/backend/src/kibicara/platforms/mastodon/bot.py index 82ff364..cab0fae 100644 --- a/backend/src/kibicara/platforms/mastodon/bot.py +++ b/backend/src/kibicara/platforms/mastodon/bot.py @@ -63,6 +63,7 @@ class MastodonBot(Censor): try: status_id = int(status["status"]["id"]) except KeyError: + self.account.notifications_dismiss(status["id"]) continue # ignore notifications which don't have a status text = re.sub(r"<[^>]*>", "", status["status"]["content"]) text = re.sub(