From 47c26818d6cd1545540e44d3475278a6a4296a77 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:29:32 +0000 Subject: [chore] add some more slice related utility functions + remove duplicated functions (#3149) --- internal/federation/federatingprotocol.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/federation') 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. -- cgit v1.3