From c035ceea6faf89bf241ead9d5c6734a0ad347926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Mon, 25 May 2026 16:59:15 -0700 Subject: [PATCH] Do not filter user's own posts in home timeline if they do not follow themselves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- damus/Features/Follows/Models/Contacts.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/damus/Features/Follows/Models/Contacts.swift b/damus/Features/Follows/Models/Contacts.swift index 3bc78a70..4c82194d 100644 --- a/damus/Features/Follows/Models/Contacts.swift +++ b/damus/Features/Follows/Models/Contacts.swift @@ -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) } } }