Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make /r/mod/about/spam also include filtered comments.

  • Loading branch information...
commit 1fd9a080b6fda313740cebfc44dda018af10a8b2 1 parent d260236
@Deimos Deimos authored spladug committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 r2/r2/lib/db/queries.py
View
4 r2/r2/lib/db/queries.py
@@ -336,7 +336,9 @@ def get_spam_comments(sr_id):
def get_spam(sr):
if isinstance(sr, ModContribSR):
srs = Subreddit._byID(sr.sr_ids, return_dict=False)
- results = [ get_spam_links(sr) for sr in srs ]
+ results = []
+ results.extend(get_spam_links(sr) for sr in srs)
+ results.extend(get_spam_comments(sr) for sr in srs)
return merge_results(*results)
else:
return merge_results(get_spam_links(sr),
Please sign in to comment.
Something went wrong with that request. Please try again.