]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/changesets/_changeset.json.jbuilder
Add changeset comment search api json format
[rails.git] / app / views / api / changesets / _changeset.json.jbuilder
index f0e46132008be266b51408ab0b948b649f8fdfc6..7001a95e854ababb5a4293a4c011b5e8c53f7baa 100644 (file)
@@ -23,13 +23,6 @@ json.tags changeset.tags unless changeset.tags.empty?
 
 if @comments
   json.comments(@comments) do |comment|
-    json.id comment.id
-    json.visible comment.visible
-    json.date comment.created_at.xmlschema
-    if comment.author.data_public?
-      json.uid comment.author.id
-      json.user comment.author.display_name
-    end
-    json.text comment.body
+    json.partial! comment
   end
 end