瀏覽代碼

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
沒有發現已知的金鑰在資料庫的簽署中 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


Loading…
取消
儲存