logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: d8bc64bb09750b9e47c1ea1bb502e88a8dd676d5
parent: 90f12f2e5a41115a9a756f9dd38054736080d4f9
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Thu, 22 Feb 2018 00:51:30 +0100

Fix #6526: Only store redirect location if not in JSON format (#6528)


Diffstat:

Mapp/controllers/application_controller.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb @@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base end def store_current_location - store_location_for(:user, request.url) + store_location_for(:user, request.url) unless request.format == :json end def require_admin!