]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/changesets/_changeset.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5410'
[rails.git] / app / views / api / changesets / _changeset.json.jbuilder
index 0d76ed90c61eaccaf257b6d0bf0ac306dc314b9d..f0e46132008be266b51408ab0b948b649f8fdfc6 100644 (file)
@@ -21,9 +21,10 @@ end
 
 json.tags changeset.tags unless changeset.tags.empty?
 
-if @include_discussion
-  json.comments(changeset.comments) do |comment|
+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