From 87975f0ca2d46b3aff3b7046e3b8e2a192125c8f Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 21 Feb 2023 21:52:16 -0500 Subject: [PATCH] Notifications from now on don't show the authors posts. Fixes: https://github.com/vitorpamplona/amethyst/issues/111 --- .../com/vitorpamplona/amethyst/ui/dal/NotificationFeedFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/NotificationFeedFilter.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/NotificationFeedFilter.kt index fa0a7075e..71bc64ada 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/NotificationFeedFilter.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/dal/NotificationFeedFilter.kt @@ -15,7 +15,7 @@ object NotificationFeedFilter: FeedFilter() { override fun feed(): List { return account.userProfile().taggedPosts - .filter { it.author == null || !account.isHidden(it.author!!) } + .filter { it.author == null || (!account.isHidden(it.author!!) && it.author != account.userProfile()) } .filter { it.event !is ChannelCreateEvent && it.event !is ChannelMetadataEvent