server/comments: fix missing score field
This commit is contained in:
parent
2e6e9b40b6
commit
5090e3f6c9
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ def serialize_comment(comment, authenticated_user, options=None):
|
||||||
'text': lambda: comment.text,
|
'text': lambda: comment.text,
|
||||||
'creationTime': lambda: comment.creation_time,
|
'creationTime': lambda: comment.creation_time,
|
||||||
'lastEditTime': lambda: comment.last_edit_time,
|
'lastEditTime': lambda: comment.last_edit_time,
|
||||||
|
'score': lambda: comment.score,
|
||||||
'ownScore': lambda: scores.get_score(comment, authenticated_user),
|
'ownScore': lambda: scores.get_score(comment, authenticated_user),
|
||||||
},
|
},
|
||||||
options)
|
options)
|
||||||
|
|
Loading…
Reference in a new issue