mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Add fallback redirection when getting a webfinger query WEB_DOMAIN@WEB_DOMAIN
(#28592)
This commit is contained in:
parent
57b72cccc4
commit
079d3e5189
@ -20,7 +20,7 @@ module WellKnown
|
|||||||
def set_account
|
def set_account
|
||||||
username = username_from_resource
|
username = username_from_resource
|
||||||
@account = begin
|
@account = begin
|
||||||
if username == Rails.configuration.x.local_domain
|
if username == Rails.configuration.x.local_domain || username == Rails.configuration.x.web_domain
|
||||||
Account.representative
|
Account.representative
|
||||||
else
|
else
|
||||||
Account.find_local!(username)
|
Account.find_local!(username)
|
||||||
|
Loading…
Reference in New Issue
Block a user