mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Allow admins to see spam on the /comments page
This commit is contained in:
@@ -563,4 +563,9 @@ class CommentsController(ListingController):
|
||||
title_text = _('comments')
|
||||
|
||||
def query(self):
|
||||
return Comment._query(sort = desc('_date'))
|
||||
q = Comment._query(Comment.c._spam == (True,False),
|
||||
sort = desc('_date'))
|
||||
if not c.user_is_admin:
|
||||
q._filter(Comment.c._spam == False)
|
||||
|
||||
return q
|
||||
|
||||
Reference in New Issue
Block a user