mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-21 20:53:34 -05:00
Fix HTTP 200 response code on paths to remote accounts that don't exist (#40341)
This commit is contained in:
@@ -103,7 +103,7 @@ class ResolveURLService < BaseService
|
||||
return unless recognized_params[:action] == 'show'
|
||||
|
||||
Account.find_local(recognized_params[:username])
|
||||
when 'home'
|
||||
when 'home', 'remote_accounts'
|
||||
return unless recognized_params[:action] == 'index' && recognized_params[:username_with_domain].present?
|
||||
|
||||
if recognized_params[:any]&.match?(/\A[0-9]+\Z/)
|
||||
|
||||
Reference in New Issue
Block a user