From d6d996e84b87cb881c7e248a2e8fa3989d71107a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 18 Apr 2023 12:38:16 -0700 Subject: [PATCH] Don't create spiral hellthreads --- damus/Nostr/NostrEvent.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/damus/Nostr/NostrEvent.swift b/damus/Nostr/NostrEvent.swift index 57fae326..722dbc69 100644 --- a/damus/Nostr/NostrEvent.swift +++ b/damus/Nostr/NostrEvent.swift @@ -748,7 +748,6 @@ func gather_reply_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] { func gather_quote_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] { var ids: [ReferencedId] = [] - ids.append(contentsOf: uniq(from.referenced_pubkeys.filter { $0.ref_id != our_pubkey })) if from.pubkey != our_pubkey { ids.append(ReferencedId(ref_id: from.pubkey, relay_id: nil, key: "p")) }