From 0b57e174e0eef202145f97a54005dcf9e86723a6 Mon Sep 17 00:00:00 2001 From: official-techsupport Date: Fri, 13 Jan 2023 01:13:52 +0200 Subject: [PATCH] Halve the offsite notifs spam --- files/helpers/offsitementions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index e892fb63c..d5fdc260b 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -61,6 +61,7 @@ def get_mentions(cache:Cache, queries:Iterable[str], reddit_notifs_users=False): for thing in data: if thing['subreddit'] in exclude_subreddits: continue if 'bot' in thing['author'].lower(): continue + if 'AutoModerator' == thing['author']: continue after = max(after, thing["created_utc"]) if thing["created_utc"] else after if kind == 'comment': body = thing["body"].replace('>', '> ') -- 2.34.1