]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
cleanup banners: remove past conferences from 2017
[rails.git] / app / models / changeset.rb
index 37d26e0a7bf82e1bb911382c82d9be174fa29e47..2ec26ecee2d7612ba0ee5a277c592ffc99a940ee 100644 (file)
@@ -238,7 +238,7 @@ class Changeset < ActiveRecord::Base
 
     bbox.to_unscaled.add_bounds_to(el1, "_") if bbox.complete?
 
-    el1["comments_count"] = comments.count.to_s
+    el1["comments_count"] = comments.length.to_s
 
     if include_discussion
       el2 = XML::Node.new("discussion")