소스 검색

Redirect from old authorize_follow path (#8584)

To avoid error due to nginx proxy caching the webfinger response
master
Eugen Rochko 5 년 전
committed by GitHub
부모
커밋
ccc2f608c5
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      config/routes.rb

+ 1
- 0
config/routes.rb 파일 보기

@@ -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


불러오는 중...
취소
저장