mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-17 00:01:27 +02:00
Fixes bug when the app calls this method directly, bypassing the other checks in AccountViewModel
This commit is contained in:
parent
1771b6e667
commit
2c3a7daa65
@ -3058,6 +3058,14 @@ class Account(
|
||||
}
|
||||
|
||||
fun isAcceptable(user: User): Boolean {
|
||||
if (userProfile().pubkeyHex == user.pubkeyHex) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (user.pubkeyHex in followingKeySet()) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (!warnAboutPostsWithReports) {
|
||||
return !isHidden(user) && // if user hasn't hided this author
|
||||
user.reportsBy(userProfile()).isEmpty() // if user has not reported this post
|
||||
|
Loading…
x
Reference in New Issue
Block a user