Fix HTTP 200 response code on paths to remote accounts that don't exist (#40341)

This commit is contained in:
Eugen Rochko
2026-10-02 11:48:25 +00:00
committed by GitHub
parent 1bf178ee59
commit 73fe2b7346
5 changed files with 27 additions and 14 deletions

View File

@@ -176,7 +176,7 @@ Rails.application.routes.draw do
get '/@:account_username/wrapstodon/:year/:share_key', to: 'wrapstodon#show', as: :public_wrapstodon
end
get '/@:username_with_domain/(*any)', to: 'home#index', constraints: { username_with_domain: %r{([^/])+?} }, as: :account_with_domain, format: false
get '/@:username_with_domain/(*any)', to: 'remote_accounts#index', constraints: { username_with_domain: %r{([^/])+?} }, as: :account_with_domain, format: false
get '/settings', to: redirect('/settings/profile')
draw(:settings)