From b5258f89c10e161ed6d8095d740942dc82dcfa4a Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 2 Aug 2023 16:27:41 -0400 Subject: [PATCH] Correcting the acceptable filter --- app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b8414fe03..4c9e78d2f 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -1514,9 +1514,9 @@ class Account( private fun isAcceptableDirect(note: Note): Boolean { if (!warnAboutPostsWithReports) { - return note.reportsBy(userProfile()).isEmpty() + return !note.hasReportsBy(userProfile()) } - return note.reportsBy(userProfile()).isEmpty() && // if user has not reported this post + return !note.hasReportsBy(userProfile()) && // if user has not reported this post note.countReportAuthorsBy(followingKeySet()) < 5 // if it has 5 reports by reliable users }