mastodon/app/controllers/oauth/authorizations_controller.rb

10 lines
211 B
Ruby

class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
before_action :store_current_location
private
def store_current_location
store_location_for(:user, request.url)
end
end