Explicitly state the SR name to reduce potential for deceptive titling

This commit is contained in:
Keith Mitchell
2012-02-14 08:52:38 -08:00
parent d3f8fdbda2
commit 50ecb6cf52

View File

@@ -561,8 +561,13 @@ class ApiController(RedditController):
if msg and subj and friend.name != c.user.name:
# fullpath with domain needed or the markdown link
# will break
if isinstance(container, Subreddit):
title = "%s: %s" % (container.path.rstrip("/"),
container.title)
else:
title = container.title
d = dict(url = container.path,
title = container.title)
title = title)
msg = msg % d
subj = subj % d
if type == 'banned':