]> cat aescling's git repositories - mastodon.git/commitdiff
Redirect from old authorize_follow path (#8584)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 2 Sep 2018 22:10:28 +0000 (00:10 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Sep 2018 22:10:28 +0000 (00:10 +0200)
To avoid error due to nginx proxy caching the webfinger response

config/routes.rb

index 0e54157dc5efe038855a9ab6087ba9f80cdaddc8..877823c7fca5e27282586d82d31c3617fb8c31b7 100644 (file)
@@ -39,6 +39,7 @@ Rails.application.routes.draw do
   }
 
   get '/users/:username', to: redirect('/@%{username}'), constraints: lambda { |req| req.format.nil? || req.format.html? }
+  get '/authorize_follow', to: redirect { |_, request| "/authorize_interaction?#{request.params.to_query}" }
 
   resources :accounts, path: 'users', only: [:show], param: :username do
     resources :stream_entries, path: 'updates', only: [:show] do