diff --git a/damus/Nostr/NostrEvent.swift b/damus/Nostr/NostrEvent.swift index 3a106c06..45798274 100644 --- a/damus/Nostr/NostrEvent.swift +++ b/damus/Nostr/NostrEvent.swift @@ -724,7 +724,7 @@ func gather_reply_ids(our_pubkey: String, from: NostrEvent) -> [ReferencedId] { var ids = get_referenced_ids(tags: from.tags, key: "e").first.map { [$0] } ?? [] ids.append(ReferencedId(ref_id: from.id, relay_id: nil, key: "e")) - ids.append(contentsOf: from.referenced_pubkeys.filter { $0.ref_id != our_pubkey }) + ids.append(contentsOf: Set(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")) }