X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c3cb1de73eb8b748e7cb20b3f842295a0a117919..2ddd667910301e73a9961ffd70b72011f1dfb22a:/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