mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Don't allow gilding of removed comments
This was making it possible to view the author/text of removed comments on the gilding page.
This commit is contained in:
@@ -1391,7 +1391,9 @@ class FormsController(RedditController):
|
||||
|
||||
if comment:
|
||||
comment_sr = Subreddit._byID(comment.sr_id, data=True)
|
||||
if comment._deleted or not comment_sr.allow_comment_gilding:
|
||||
if (comment._deleted or
|
||||
comment._spam or
|
||||
not comment_sr.allow_comment_gilding):
|
||||
comment = None
|
||||
|
||||
start_over = False
|
||||
|
||||
Reference in New Issue
Block a user