mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
temporarily disable spam
This commit is contained in:
@@ -268,18 +268,19 @@ class FrontController(RedditController):
|
||||
pane = listing.listing()
|
||||
|
||||
elif is_moderator and location == 'spam':
|
||||
links = Link._query(Link.c._spam == True)
|
||||
comments = Comment._query(Comment.c._spam == True)
|
||||
query = thing.Merge((links, comments),
|
||||
Link.c.sr_id == c.site._id,
|
||||
sort = desc('_date'),
|
||||
data = True)
|
||||
|
||||
builder = QueryBuilder(query, num = num, after = after,
|
||||
count = count, reverse = reverse,
|
||||
wrap = ListingController.builder_wrapper)
|
||||
listing = LinkListing(builder)
|
||||
pane = listing.listing()
|
||||
# links = Link._query(Link.c._spam == True)
|
||||
# comments = Comment._query(Comment.c._spam == True)
|
||||
# query = thing.Merge((links, comments),
|
||||
# Link.c.sr_id == c.site._id,
|
||||
# sort = desc('_date'),
|
||||
# data = True)
|
||||
#
|
||||
# builder = QueryBuilder(query, num = num, after = after,
|
||||
# count = count, reverse = reverse,
|
||||
# wrap = ListingController.builder_wrapper)
|
||||
# listing = LinkListing(builder)
|
||||
# pane = listing.listing()
|
||||
pane = InfoBar(message = "There doesn't seem to be anything here.")
|
||||
else:
|
||||
return self.abort404()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user