From: mmd-osm Date: Tue, 14 Aug 2018 08:57:13 +0000 (+0200) Subject: Include num_changes in changeset xml response X-Git-Tag: live~2896^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fe644bbd722b2a2e9be8c80ae05f2594b3e2ea60?ds=sidebyside Include num_changes in changeset xml response --- diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 502637c2a..1aa1e1fd3 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -232,6 +232,7 @@ class Changeset < ActiveRecord::Base bbox.to_unscaled.add_bounds_to(el1, "_") if bbox.complete? el1["comments_count"] = comments.length.to_s + el1["changes_count"] = num_changes.to_s if include_discussion el2 = XML::Node.new("discussion")