From 6dbe531ff24cacfd75ec007a057d22bb07d22709 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Mon, 5 Mar 2012 12:36:16 -0800 Subject: [PATCH] Don't reveal banner's identity when replying --- r2/r2/controllers/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index c65ca6663..2dd0d62b2 100644 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -909,7 +909,10 @@ class ApiController(RedditController): errors.USER_BLOCKED)): if is_message: - to = Account._byID(parent.author_id) + if parent.from_sr: + to = Subreddit._byID(parent.sr_id) + else: + to = Account._byID(parent.author_id) subject = parent.subject re = "re: " if not subject.startswith(re):