mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-20 05:24:33 -05:00
Fix HTTP 200 response code on paths to remote accounts that don't exist (#40341)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user