X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ed68d524de0703685ff15f1ab574c61ec67e2c22..1ceb4ab9ba10d97333414bf66ae2c9d553668903:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index b6d8cbe53..0f61b7a47 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -815,12 +815,10 @@ class AmfController < ApplicationController return user end - # Update changeset timeout - # i.e. one hour after current edit - - def updatetimeout(changeset_id) #:doc: + # save the changeset identified by +changeset_id+. this + # automatically sets the close timeout appropriately. + def updatetimeout(changeset_id) cs = Changeset.find(changeset_id) - cs.closed_at = Time.now.getutc + Changeset::IDLE_TIMEOUT cs.save! end