damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit 5aa19be82ab7df26cabf5137a877fab7c667e452
parent 844146e54711876c5ff19b028abaf86d503d75ba
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 17 Apr 2022 15:12:15 -0700

reference all ids again

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Nostr/NostrEvent.swift | 2+-
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.first.map { [$0] } ?? [] + var ids = self.referenced_ids 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"))