X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4dfe43c956833e11e1ae0169b6312577b1d6a80c..b255a333c5a1dc1bb1932a00d952fbb457e38478:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 375ac8131..0aeab63b3 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -474,6 +474,7 @@ class UserController < ApplicationController # sets a user's status def set_status @this_user.status = params[:status] + @this_user.save redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name] end @@ -717,7 +718,7 @@ private # Choose the layout to use. See # https://rails.lighthouseapp.com/projects/8994/tickets/5371-layout-with-onlyexcept-options-makes-other-actions-render-without-layouts def choose_layout - oauth_url = url_for(:controller => :oauth, :action => :oauthorize, :only_path => true) + oauth_url = url_for(:controller => :oauth, :action => :authorize, :only_path => true) if [ 'api_details' ].include? action_name nil