mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
Never mark comments by promoters on their own promotions as spam
This commit is contained in:
@@ -787,7 +787,12 @@ class Comment(Thing, Printable):
|
||||
ip=ip,
|
||||
**kw)
|
||||
|
||||
c._spam = author._spam
|
||||
# whitelist promoters commenting on their own promoted links
|
||||
from r2.lib import promote
|
||||
if promote.is_promo(link) and link.author_id == author._id:
|
||||
c._spam = False
|
||||
else:
|
||||
c._spam = author._spam
|
||||
|
||||
if author._spam:
|
||||
g.stats.simple_event('spam.autoremove.comment')
|
||||
|
||||
Reference in New Issue
Block a user