X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0de36b6072b7e8ee0083e680ebf6a21d5b81ab8..9544ab12b8237b4e471f03df981a189c80216c63:/app/controllers/changeset_controller.rb?ds=sidebyside diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 63f9f0f7d..d34eb8739 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -250,8 +250,8 @@ class ChangesetController < ApplicationController ## # list edits (open changesets) in reverse chronological order def list - if request.format == :atom and params[:page] - redirect_to params.merge({ :page => nil }), :status => :moved_permanently + if request.format == :atom and params[:max_id] + redirect_to params.merge({ :max_id => nil }), :status => :moved_permanently return end @@ -268,7 +268,8 @@ class ChangesetController < ApplicationController return end - if request.format == :html and !params[:bbox] + if request.format == :html and !params[:list] + require_oauth render :action => :history, :layout => map_layout else changesets = conditions_nonempty(Changeset.all) @@ -291,7 +292,7 @@ class ChangesetController < ApplicationController changesets = changesets.where("changesets.id <= ?", params[:max_id]) end - @edits = changesets.order("changesets.created_at DESC").limit(20).preload(:user, :changeset_tags) + @edits = changesets.order("changesets.id DESC").limit(20).preload(:user, :changeset_tags) render :action => :list, :layout => false end