mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
Correcting the acceptable filter
This commit is contained in:
parent
fcc67fc4f2
commit
b5258f89c1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user