damus

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

commit 8f767b03ae810427fcc8fbcf60b2d23d2b15f87c
parent 209b23674d0a668304fc9b6a6c1f2255c993ba59
Author: Gísli Kristjánsson <gislik@hamstur.is>
Date:   Mon, 17 Apr 2023 04:38:06 +0000

fix: find inner_event profiles from events

Diffstat:
Mdamus/Models/SearchHomeModel.swift | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/damus/Models/SearchHomeModel.swift b/damus/Models/SearchHomeModel.swift @@ -128,11 +128,14 @@ func find_profiles_to_fetch_from_events(profiles: Profiles, events: [NostrEvent] var pubkeys = Set<String>() for ev in events { - if profiles.lookup(id: ev.pubkey) != nil { - continue + // lookup profiles from boosted events + if let bev = ev.inner_event, profiles.lookup(id: bev.pubkey) == nil { + pubkeys.insert(bev.pubkey) } - pubkeys.insert(ev.pubkey) + if profiles.lookup(id: ev.pubkey) == nil { + pubkeys.insert(ev.pubkey) + } } return Array(pubkeys)