X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0a046673d630a4618c27559875ce613465d85d3c..51a2d85053b67b2bc842fa45ac8eb998f8585add:/app/views/api/changesets/_changeset.json.jbuilder?ds=sidebyside diff --git a/app/views/api/changesets/_changeset.json.jbuilder b/app/views/api/changesets/_changeset.json.jbuilder index 0d76ed90c..7001a95e8 100644 --- a/app/views/api/changesets/_changeset.json.jbuilder +++ b/app/views/api/changesets/_changeset.json.jbuilder @@ -21,14 +21,8 @@ end json.tags changeset.tags unless changeset.tags.empty? -if @include_discussion - json.comments(changeset.comments) do |comment| - json.id comment.id - 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 +if @comments + json.comments(@comments) do |comment| + json.partial! comment end end