Fixed a KeyError when editing a comment.
This commit is contained in:
@@ -162,7 +162,10 @@ def edit_comment(user_id, node_id, patch):
|
||||
log.info('User %s edited comment %s', user_id, node_id)
|
||||
|
||||
# Fetch the new content, so the client can show these without querying again.
|
||||
node = nodes_coll.find_one(node_id, projection={'properties._content_html': 1})
|
||||
node = nodes_coll.find_one(node_id, projection={
|
||||
'properties.content': 1,
|
||||
'properties._content_html': 1,
|
||||
})
|
||||
return status, node
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user