Add fallback redirection when getting a webfinger query `WEB_DOMAIN@WEB_DOMAIN` (#28592)

pull/30468/head
Claire 2024-01-04 15:14:46 +01:00
parent 57b72cccc4
commit 079d3e5189
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module WellKnown
def set_account
username = username_from_resource
@account = begin
if username == Rails.configuration.x.local_domain
if username == Rails.configuration.x.local_domain || username == Rails.configuration.x.web_domain
Account.representative
else
Account.find_local!(username)