commit 04b0e2b38b1f92369d1812f3a0541618da78c60e
parent 4ff6719961802a4f170af1f8d4b9c2ea12b83b69
Author: William Casarin <jb55@jb55.com>
Date: Sun, 17 Apr 2022 15:19:56 -0700
Revert "reference all ids again"
This reverts commit 5aa19be82ab7df26cabf5137a877fab7c667e452.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Nostr/NostrEvent.swift b/damus/Nostr/NostrEvent.swift
@@ -88,7 +88,7 @@ class NostrEvent: Codable, Identifiable {
}
public func reply_ids(pubkey: String) -> [ReferencedId] {
- var ids = self.referenced_ids
+ var ids = self.referenced_ids.first.map { [$0] } ?? []
ids.append(ReferencedId(ref_id: self.id, relay_id: nil, key: "e"))
ids.append(contentsOf: self.referenced_pubkeys)
ids.append(ReferencedId(ref_id: pubkey, relay_id: nil, key: "p"))