Message: Remove trailing slash from subreddit path in tagline.

This commit is contained in:
Brian Simpson
2015-11-17 16:13:10 -08:00
parent 2ddb71aba3
commit a3462987f9

View File

@@ -82,7 +82,8 @@
substitutions = {}
if thing.sr_id:
substitutions['subreddit'] = format_html(u'<span class="subreddit"><a href="%(path)s">%(path)s</a></span>', path=thing.subreddit.path)
path = thing.subreddit.path.rstrip('/')
substitutions['subreddit'] = format_html(u'<span class="subreddit"><a href="%(path)s">%(path)s</a></span>', path=path)
substitutions['author'] = format_html(u'<span class="sender">%s</span>', WrappedUser(thing.author, thing.attribs, thing))