]> git.openstreetmap.org Git - rails.git/commitdiff
Include num_changes in changeset xml response
authormmd-osm <mmd.osm@gmail.com>
Tue, 14 Aug 2018 08:57:13 +0000 (10:57 +0200)
committermmd-osm <mmd.osm@gmail.com>
Tue, 14 Aug 2018 08:57:13 +0000 (10:57 +0200)
app/models/changeset.rb

index 502637c2a69b8926fc84a4dac6b2403f152574d4..1aa1e1fd300d36eedf230b0304e18ab662fbe50e 100644 (file)
@@ -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")