prevent malicious use by excluding user subreddits

master
Aevann 2023-09-17 22:56:00 +03:00
parent 83b017f76f
commit c8a3a5a569
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False):
continue
if thing.get('subreddit_subscribers') and thing['subreddit_subscribers'] < 2: continue
if thing['subreddit_type'] == 'user': continue
if thing['subreddit'] in {'IAmA', 'PokemonGoRaids', 'SubSimulatorGPT2', 'SubSimGPT2Interactive'}: continue
if 'bot' in thing['author'].lower(): continue
if 'AutoModerator' == thing['author']: continue