Halve the offsite notifs spam #83

Merged
Aevann merged 1 commits from :master into master 2023-01-13 11:36:11 +00:00
1 changed files with 1 additions and 0 deletions

View File

@ -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('>', '> ')