Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Make /r/mod/about/spam also include filtered comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deimos authored and spladug committed Apr 3, 2012
1 parent d260236 commit 1fd9a08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r2/r2/lib/db/queries.py
Expand Up @@ -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),
Expand Down

0 comments on commit 1fd9a08

Please sign in to comment.