From dd1aa1bd4fac1ffe1c0ac72c84949cc6545a5ce4 Mon Sep 17 00:00:00 2001 From: Tobin Date: Wed, 1 Apr 2015 17:06:56 -0500 Subject: [PATCH] fixed bug for author highlighting in comments --- rtv/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtv/content.py b/rtv/content.py index 72899e9..5a1f872 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -74,7 +74,7 @@ class BaseContent(object): data['score'] = '{} pts'.format(comment.score) author = getattr(comment, 'author') data['author'] = (author.name if author else '[deleted]') - sub_author = getattr(comment.submission, 'author') + sub_author = getattr(comment.submission.author, 'name') data['is_author'] = (data['author'] == sub_author) flair = comment.author_flair_text data['flair'] = (flair if flair else '')