Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't allow gilding of removed comments

This was making it possible to view the author/text of removed comments
on the gilding page.
  • Loading branch information...
commit cb99c8ca190e564e0e13cc4690d181914b52dfc2 1 parent 00273cd
@Deimos Deimos authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 r2/r2/controllers/front.py
View
4 r2/r2/controllers/front.py
@@ -1391,7 +1391,9 @@ def GET_gold(self, goldtype, period, months,
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
Please sign in to comment.
Something went wrong with that request. Please try again.