From b619e64cdc0862c4de8ef9dfa63fe039e38d3fb6 Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Sun, 7 Apr 2013 15:02:17 -0600 Subject: [PATCH] Ignore reports by users banned from the subreddit --- r2/r2/controllers/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index df430dba1..3625f8430 100755 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -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)