From 40deb46eab84df28a02ce2d6eeb45aaa5dd0baf7 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sat, 4 Feb 2023 10:42:32 -0500 Subject: [PATCH] Bugfix: consider flags of the referenced post in case of Boost events. --- app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index 03872f670..e831f25c6 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -378,7 +378,7 @@ class Account( return note.author?.let { isAcceptable(it) } ?: true // if user hasn't hided this author && isAcceptableDirect(note) && (note.event !is RepostEvent - || (note.event is RepostEvent && note.replyTo?.firstOrNull { isAcceptableDirect(note) } != null) + || (note.event is RepostEvent && note.replyTo?.firstOrNull { isAcceptableDirect(it) } != null) ) // is not a reaction about a blocked post }