summaryrefslogtreecommitdiff
path: root/internal/federation/federatingprotocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation/federatingprotocol.go')
-rw-r--r--internal/federation/federatingprotocol.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/federation/federatingprotocol.go b/internal/federation/federatingprotocol.go
index 1a655994c..fdd13f7f0 100644
--- a/internal/federation/federatingprotocol.go
+++ b/internal/federation/federatingprotocol.go
@@ -162,7 +162,9 @@ func (f *Federator) PostInboxRequestBodyHook(ctx context.Context, r *http.Reques
// OtherIRIs will likely contain some
// duplicate entries now, so remove them.
- otherIRIs = util.UniqueURIs(otherIRIs)
+ otherIRIs = util.DeduplicateFunc(otherIRIs,
+ (*url.URL).String, // serialized URL is 'key()'
+ )
// Finished, set other IRIs on the context
// so they can be checked for blocks later.