X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9477d7a65e03b895a8d30a4586449e76c1ea4758..5dda4196d50774e8a44e9e137d45141d4151764b:/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