web/explore: if pow filtering is disabled, remove friends

Otherwise the explore timeline looks just like the home timeline
This commit is contained in:
William Casarin 2022-11-15 15:27:16 -08:00
parent ae6102b4f6
commit a78858629e
2 changed files with 6 additions and 2 deletions

View file

@ -357,6 +357,10 @@ function should_add_to_explore_timeline(contacts, view, ev, pow)
if (view.seen.has(ev.pubkey))
return false
// hide friends for 0-pow situations
if (pow === 0 && contacts.friends.has(ev.pubkey))
return false
return passes_spam_filter(contacts, ev, pow)
}