Skip to content

Commit

Permalink
Misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 30, 2018
1 parent 64cc1eb commit 555fe89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spamhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ def check_if_spam(post):
blacklisted_post_url, to_metasmoke_link(rel_url), blacklisted_by
)
else:
why += u"\n" + u"Blacklisted user - blacklisted by {}".format(blacklisted_by)
if 0 < len(test):
why += u"\nBlacklisted user - blacklisted by {}".format(blacklisted_by)
if test:
if datahandling.has_already_been_posted(post.post_site, post.post_id, post.title) \
or datahandling.is_false_positive((post.post_id, post.post_site)) \
or should_whitelist_prevent_alert(post.user_url, test) \
or datahandling.is_ignored_post((post.post_id, post.post_site)) \
or datahandling.is_auto_ignored_post((post.post_id, post.post_site)) \
or datahandling.has_community_bumped_post(post.post_url, post.body):
return False, None, "" # Don't repost. Reddit will hate you.
return True, test, why
return True, test, why.strip()
return False, None, ""


Expand Down

0 comments on commit 555fe89

Please sign in to comment.