mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Remove the ability for mods to approve a deleted link. This prevents the deleted
then approved link from becoming visible.
This commit is contained in:
@@ -1400,6 +1400,7 @@ class ApiController(RedditController):
|
||||
thing = VByName('id'))
|
||||
def POST_approve(self, why, thing):
|
||||
if not thing: return
|
||||
if thing._deleted: return
|
||||
|
||||
end_trial(thing, why + "-approved")
|
||||
admintools.unspam(thing, c.user.name)
|
||||
|
||||
@@ -39,7 +39,7 @@ class PrintableButtons(Styled):
|
||||
(thing.reveal_trial_info and not thing.show_spam))
|
||||
approval_checkmark = getattr(thing, "approval_checkmark", None)
|
||||
show_approve = (thing.show_spam or show_ignore or
|
||||
(is_link and approval_checkmark is None))
|
||||
(is_link and approval_checkmark is None)) and not thing._deleted
|
||||
|
||||
Styled.__init__(self, style = style,
|
||||
thing = thing,
|
||||
|
||||
Reference in New Issue
Block a user