mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Ignore reports by users banned from the subreddit
This commit is contained in:
@@ -1081,7 +1081,9 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
elif isinstance(thing, Comment):
|
||||
pass
|
||||
|
||||
if c.user._spam or c.user.ignorereports:
|
||||
if (c.user._spam or
|
||||
c.user.ignorereports or
|
||||
thing.subreddit_slow.is_banned(c.user)):
|
||||
return
|
||||
Report.new(c.user, thing)
|
||||
admintools.report(thing)
|
||||
|
||||
Reference in New Issue
Block a user