Don't reveal banner's identity when replying

This commit is contained in:
Keith Mitchell
2012-03-05 12:36:16 -08:00
committed by Neil Williams
parent 7e1db722af
commit 6dbe531ff2

View File

@@ -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):