From 80bdc22d84591685e3991b9a2be6e7dd534a1e1f Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Wed, 21 Jul 2021 16:51:00 +0200 Subject: [PATCH] lil webfingy fix --- internal/api/s2s/webfinger/webfingerget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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