mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Admin listing for reported promoted links.
This commit is contained in:
@@ -93,6 +93,7 @@ from r2.models import (
|
||||
Account,
|
||||
calc_impressions,
|
||||
Frontpage,
|
||||
get_promote_srid,
|
||||
Link,
|
||||
LiveAdWeights,
|
||||
Message,
|
||||
@@ -236,6 +237,8 @@ class PromoteController(ListingController):
|
||||
return_dict=False)
|
||||
link_ids = [camp.link_id for camp in campaigns]
|
||||
return [Link._fullname_from_id36(to36(id)) for id in link_ids]
|
||||
elif self.sort == 'reported':
|
||||
return queries.get_reported_links(get_promote_srid())
|
||||
return queries.get_all_promoted_links()
|
||||
else:
|
||||
if self.sort == "future_promos":
|
||||
|
||||
@@ -3305,6 +3305,7 @@ class PromotePage(Reddit):
|
||||
dest='/admin/graph'))
|
||||
buttons.append(NavButton('report', 'report'))
|
||||
buttons.append(NavButton('underdelivered', 'underdelivered'))
|
||||
buttons.append(NavButton('reported links', 'reported'))
|
||||
|
||||
menu = NavMenu(buttons, base_path = '/promoted',
|
||||
type='flatlist')
|
||||
|
||||
Reference in New Issue
Block a user