X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/df3db35c96b55af95389271da6a5bba23224ad99..3461b7a699a753906ba4333ffd8d19deafd33605:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index ca45de55d..9fb9b8940 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -279,7 +279,7 @@ class AmfController < ApplicationController EOF histlist=ActiveRecord::Base.connection.select_all(sql) histlist.each { |row| - if row['data_public'] then user=row['display_name'] else user='anonymous' end + if row['data_public'].to_i==1 then user=row['display_name'] else user='anonymous' end history<<[row['version'],row['timestamp'],row['visible'],user] } [history]