Only check inner_events on boosts

This commit is contained in:
William Casarin
2023-04-17 10:17:15 -07:00
parent a320fae2bc
commit 5a1b966191

View File

@@ -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)
}