]> git.openstreetmap.org Git - rails.git/commitdiff
Include the event type in the JSON output of a note
authorTom Hughes <tom@compton.nu>
Fri, 9 Mar 2012 00:29:22 +0000 (00:29 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 9 Mar 2012 00:29:22 +0000 (00:29 +0000)
app/views/note/_note.json.jsonify

index a6ef9792ebec92b07241fdaa6334a75e6b8459c2..ba9ccd944e663707cec48978b2b180a7ad549e4d 100644 (file)
@@ -16,6 +16,7 @@ json.properties do
     json.date comment.created_at
     json.uid comment.author_id unless comment.author_id.nil?
     json.user comment.author_name
-    json.text comment.body
+    json.action comment.event
+    json.text comment.body unless comment.body.nil?
   end
 end