summaryrefslogtreecommitdiff
path: root/internal/federation/federatingprotocol.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-07-30 09:29:32 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-30 11:29:32 +0200
commit47c26818d6cd1545540e44d3475278a6a4296a77 (patch)
treeb1a2c6046b84d9849af29bf7720c00243005cb89 /internal/federation/federatingprotocol.go
parent[feature] Implement following hashtags (#3141) (diff)
downloadgotosocial-47c26818d6cd1545540e44d3475278a6a4296a77.tar.xz
[chore] add some more slice related utility functions + remove duplicated functions (#3149)
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.