瀏覽代碼

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.
master
ThibG 7 年之前
committed by Eugen
父節點
當前提交
89dc29affb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/lib/webfinger_resource.rb

+ 1
- 1
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

Loading…
取消
儲存