Add coloured tag for sticky comments.
This commit is contained in:
@@ -100,6 +100,7 @@ class Content(object):
|
||||
sub_name = getattr(sub_author, 'name', '[deleted]')
|
||||
flair = getattr(comment, 'author_flair_text', '')
|
||||
permalink = getattr(comment, 'permalink', None)
|
||||
stickied = getattr(comment, 'stickied', False)
|
||||
|
||||
data['type'] = 'Comment'
|
||||
data['body'] = comment.body
|
||||
@@ -112,6 +113,7 @@ class Content(object):
|
||||
data['likes'] = comment.likes
|
||||
data['gold'] = comment.gilded > 0
|
||||
data['permalink'] = permalink
|
||||
data['stickied'] = stickied
|
||||
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user