X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..bcf5782fb5a3a916ea036ce78ecd2a1208ace87f:/app/views/api/changesets/_changeset.json.jbuilder?ds=inline diff --git a/app/views/api/changesets/_changeset.json.jbuilder b/app/views/api/changesets/_changeset.json.jbuilder index 25b366011..7001a95e8 100644 --- a/app/views/api/changesets/_changeset.json.jbuilder +++ b/app/views/api/changesets/_changeset.json.jbuilder @@ -21,13 +21,8 @@ end json.tags changeset.tags unless changeset.tags.empty? -if @include_discussion - json.comments(changeset.comments) do |comment| - 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