Accept reports on promoted links.

This commit is contained in:
Brian Simpson
2013-08-09 14:49:19 -04:00
parent bf0fd5dc24
commit 7e52cf0e09
2 changed files with 1 additions and 5 deletions

View File

@@ -1208,8 +1208,6 @@ class ApiController(RedditController, OAuth2ResourceController):
"""
if not thing or thing._deleted:
return
elif getattr(thing, 'promoted', False):
return
# if it is a message that is being reported, ban it.
# every user is admin over their own personal inbox

View File

@@ -70,9 +70,7 @@ class LinkButtons(PrintableButtons):
is_author = (c.user_is_loggedin and thing.author and
c.user.name == thing.author.name)
# do we show the report button?
show_report = (not is_author and
report and
getattr(thing, "promoted", None) is None)
show_report = not is_author and report
if c.user_is_admin and thing.promoted is None:
show_report = False