From f5db68a80f4297546b34493df52f29c0697ee9f2 Mon Sep 17 00:00:00 2001 From: David Ehrmann Date: Tue, 17 Dec 2013 14:32:54 -0800 Subject: [PATCH] Never mark comments by promoters on their own promotions as spam --- r2/r2/models/link.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/r2/r2/models/link.py b/r2/r2/models/link.py index 9aaeb711a..b4d9e1ffe 100755 --- a/r2/r2/models/link.py +++ b/r2/r2/models/link.py @@ -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')