diff --git a/r2/r2/templates/message.html b/r2/r2/templates/message.html index b262d9e91..c79229236 100644 --- a/r2/r2/templates/message.html +++ b/r2/r2/templates/message.html @@ -54,16 +54,20 @@ ${parent.thing_css_class(what)} ${"new" if thing.new else ""} ${"was-comment" if <% author = WrappedUser(thing.author, thing.attribs, thing).render() if thing.sr_id: - subreddit = ' %s ' % (thing.subreddit.path, - thing.subreddit.path) + subreddit = '%s' % (thing.subreddit.path, + thing.subreddit.path) if not thing.dest: thing.dest = subreddit - author = thing.updated_author % dict(author=author, subreddit=subreddit) - - taglinetext = thing.taglinetext.replace(' ', ' ') - taglinetext = taglinetext % dict(when=capture(thing_timestamp, thing, thing.timesince), - author=u"%s" % author, - dest=u"%s" % thing.dest) + author = thing.updated_author % dict( + author=author, + subreddit=subreddit) + + taglinetext = thing.taglinetext % dict( + when=capture(thing_timestamp, thing, thing.timesince), + author=u"%s" % author, + dest=u"%s" % thing.dest) + + taglinetext = taglinetext.replace(' ', ' ') %> ${unsafe(taglinetext)}