Upgrade code
This commit is contained in:
@@ -219,9 +219,10 @@ def notify_comment_added(comment):
|
||||
# receive the new comment immediately without needing to reload.
|
||||
payload = {
|
||||
'id' : comment.id,
|
||||
'author_name': comment.author.full_name,
|
||||
'author_init': comment.author.full_name[0].upper(),
|
||||
'is_it_staff': comment.author.is_it_staff,
|
||||
'author_name' : comment.author.full_name,
|
||||
'author_init' : comment.author.full_name[0].upper(),
|
||||
'author_avatar': comment.author.avatar_url or '',
|
||||
'is_it_staff' : comment.author.is_it_staff,
|
||||
'is_internal': comment.is_internal,
|
||||
'body' : comment.body,
|
||||
'created_at' : comment.created_at.strftime('%b %d, %Y %H:%M'),
|
||||
|
||||
Reference in New Issue
Block a user