diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-04-27 12:23:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 12:23:55 +0100 |
commit | 54ff4cf690918886c7e7a59a65ccff970c3aa1fc (patch) | |
tree | b9bafa60687d166205841f3fdf3662a0939d524e /federationapi/internal | |
parent | dca4afd2f0871ed53109121dff17048e69cc4935 (diff) |
Don't try to federated-join via ourselves (#2383)
Diffstat (limited to 'federationapi/internal')
-rw-r--r-- | federationapi/internal/perform.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index 8cd94434..aac36cc7 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -75,7 +75,7 @@ func (r *FederationInternalAPI) PerformJoin( seenSet := make(map[gomatrixserverlib.ServerName]bool) var uniqueList []gomatrixserverlib.ServerName for _, srv := range request.ServerNames { - if seenSet[srv] { + if seenSet[srv] || srv == r.cfg.Matrix.ServerName { continue } seenSet[srv] = true |