Add fallback redirection when getting a webfinger query LOCAL_DOMAIN@LOCAL_DOMAIN
(#23600)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
parent
5e060e1f44
commit
9189e90ff2
2 changed files with 44 additions and 9 deletions
|
@ -18,7 +18,14 @@ module WellKnown
|
|||
private
|
||||
|
||||
def set_account
|
||||
@account = Account.find_local!(username_from_resource)
|
||||
username = username_from_resource
|
||||
@account = begin
|
||||
if username == Rails.configuration.x.local_domain
|
||||
Account.representative
|
||||
else
|
||||
Account.find_local!(username)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def username_from_resource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue