damus

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

commit 5a1b9661918689e63e4908b8037521b1ec8fbaef
parent a320fae2bc8f76b18ace652f09658f766873aa3d
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 17 Apr 2023 10:17:15 -0700

Only check inner_events on boosts

Diffstat:
Mdamus/Models/SearchHomeModel.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Models/SearchHomeModel.swift b/damus/Models/SearchHomeModel.swift @@ -129,7 +129,7 @@ func find_profiles_to_fetch_from_events(profiles: Profiles, events: [NostrEvent] for ev in events { // lookup profiles from boosted events - if let bev = ev.inner_event, profiles.lookup(id: bev.pubkey) == nil { + if ev.known_kind == .boost, let bev = ev.inner_event, profiles.lookup(id: bev.pubkey) == nil { pubkeys.insert(bev.pubkey) }