diff options
author | 2021-07-21 17:46:59 +0200 | |
---|---|---|
committer | 2021-07-21 17:46:59 +0200 | |
commit | 113186ce4e5bff2141b826d5da7eb2807eda4b45 (patch) | |
tree | f31e7300e5c5870d3407056c98b818905f92d8c5 /internal/api/s2s/webfinger/webfingerget.go | |
parent | Config bugfix (#104) (diff) | |
download | gotosocial-113186ce4e5bff2141b826d5da7eb2807eda4b45.tar.xz |
lil webfingy fix (#106)
* lil webfingy fix
* return requested content type from fede requests
Diffstat (limited to 'internal/api/s2s/webfinger/webfingerget.go')
-rw-r--r-- | internal/api/s2s/webfinger/webfingerget.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/s2s/webfinger/webfingerget.go b/internal/api/s2s/webfinger/webfingerget.go index 1d723e67c..ee3176413 100644 --- a/internal/api/s2s/webfinger/webfingerget.go +++ b/internal/api/s2s/webfinger/webfingerget.go @@ -64,7 +64,7 @@ func (m *Module) WebfingerGETRequest(c *gin.Context) { return } - if accountDomain != m.config.AccountDomain { + if accountDomain != m.config.AccountDomain && accountDomain != m.config.Host { l.Debugf("aborting request because accountDomain %s does not belong to this instance", accountDomain) c.JSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("accountDomain %s does not belong to this instance", accountDomain)}) return |