diff options
author | ThibG <thib@sitedethib.com> | 2017-04-23 14:19:54 +0200 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-23 14:19:54 +0200 |
commit | 89dc29affbfe99cb84505cd65aa6e2adab8d2c7c (patch) | |
tree | 9eeba88da23f4a77fc13c173e74a738cb3cfd113 /app/lib | |
parent | 85e09518b9bb510d9a421ad759ddd74cb5b47894 (diff) |
Allow webfinger controller to reply to user@WEB_DOMAIN in addition to user@LOCAL_DOMAIN (#2351)
This provides a hotfix for outbound salmon requests to other Mastodon instances as they currently will try to resovle user@WEB_DOMAIN instead of user@LOCAL_DOMAIN (see #2012 and #20312). Furthermore, this should ease transition from users switching from LOCAL_DOMAIN = WEB_DOMAIN to another LOCAL_DOMAIN when WEB_DOMAIN does not change.
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/webfinger_resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/webfinger_resource.rb b/app/lib/webfinger_resource.rb index 8c5db795d..a54a702a2 100644 --- a/app/lib/webfinger_resource.rb +++ b/app/lib/webfinger_resource.rb @@ -61,6 +61,6 @@ class WebfingerResource end def domain_matches_local? - TagManager.instance.local_domain?(local_domain) + TagManager.instance.local_domain?(local_domain) || TagManager.instance.web_domain?(local_domain) end end |