Correcting the acceptable filter

This commit is contained in:
Vitor Pamplona
2023-08-02 16:27:41 -04:00
parent fcc67fc4f2
commit b5258f89c1
@@ -1514,9 +1514,9 @@ class Account(
private fun isAcceptableDirect(note: Note): Boolean { private fun isAcceptableDirect(note: Note): Boolean {
if (!warnAboutPostsWithReports) { 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 note.countReportAuthorsBy(followingKeySet()) < 5 // if it has 5 reports by reliable users
} }