fixed bug for author highlighting in comments

This commit is contained in:
Tobin
2015-04-01 17:06:56 -05:00
parent ac98f564a3
commit dd1aa1bd4f

View File

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