Skip to content
Browse files

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

  • Loading branch information...
1 parent d260236 commit 1fd9a080b6fda313740cebfc44dda018af10a8b2 @Deimos Deimos committed with spladug Mar 30, 2012
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),

0 comments on commit 1fd9a08

Please sign in to comment.
Something went wrong with that request. Please try again.