Do not filter user's own posts in home timeline if they do not follow themselves

Closes: #3675
Changelog-Fixed: Fixed an issue where posts would not appear on the user's own timeline if they did not follow themselves
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2026-05-25 16:59:15 -07:00
parent cbae70336d
commit c035ceea6f
+2 -1
View File
@@ -98,10 +98,11 @@ class Contacts {
return Array((pubkey_to_our_friends[pubkey] ?? Set()))
}
/// Filters timeline events to authors the user follows, while still allowing the user's own events through.
var friend_filter: (NostrEvent) -> Bool {
{ [weak self] ev in
guard let self else { return false }
return self.is_friend(ev.pubkey)
return self.is_friend_or_self(ev.pubkey)
}
}
}