X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9477d7a65e03b895a8d30a4586449e76c1ea4758..621cb8a1effa92f6a9df1c387d035b22e16c7941:/app/views/notes/_note.json.jsonify diff --git a/app/views/notes/_note.json.jsonify b/app/views/notes/_note.json.jsonify index 5724dfd54..c702d9254 100644 --- a/app/views/notes/_note.json.jsonify +++ b/app/views/notes/_note.json.jsonify @@ -24,6 +24,10 @@ json.properties do end json.action comment.event - json.text comment.body unless comment.body.nil? + + if comment.body + json.text comment.body.to_text + json.html comment.body.to_html + end end end