forked from MarseyWorld/MarseyWorld
Halve the offsite notifs spam (#83)
don't notify for /u/Automoderator messages Co-authored-by: official-techsupport <official_techsupport@protonmail.com> Reviewed-on: rDrama/rDrama#83 Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net> Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>master
parent
f133868215
commit
0f4e66c070
|
@ -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('>', '> ')
|
||||
|
|
Loading…
Reference in New Issue