web: remove complex logic from notifications

This is preventing likes from coming through
This commit is contained in:
William Casarin 2022-11-19 12:24:23 -08:00
parent 175580b2ae
commit efb931163d

View file

@ -346,12 +346,6 @@ function should_add_to_notification_timeline(our_pk, contacts, ev, pow)
if (!should_add_to_timeline(ev))
return false
if (our_pk === ev.pubkey)
return false
if (our_pk !== ev.pubkey && contacts.friends.has(ev.pubkey))
return true
// TODO: add items that don't pass spam filter to "message requests"
// Then we will need a way to whitelist people as an alternative to
// following them