mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Accept reports on promoted links.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user