Added tests, minor refactoring
This commit is contained in:
@@ -149,7 +149,7 @@ class Content(object):
|
||||
data['type'] = 'Comment'
|
||||
data['level'] = comment.nested_level
|
||||
data['body'] = comment.body
|
||||
data['html'] = comment.body_html or ''
|
||||
data['html'] = comment.body_html
|
||||
data['created'] = cls.humanize_timestamp(comment.created_utc)
|
||||
data['score'] = '{0} pts'.format(
|
||||
'-' if comment.score_hidden else comment.score)
|
||||
|
||||
Reference in New Issue
Block a user