Uses the inHidden in Hex

pull/340/head
Vitor Pamplona 2023-04-07 14:23:34 -04:00
rodzic cc44b4dd55
commit 9ee3da3910
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ object HomeNewThreadFeedFilter : FeedFilter<Note>() {
(it.event is TextNoteEvent || it.event is RepostEvent || it.event is PollNoteEvent) &&
(it.author?.pubkeyHex in followingKeySet || (it.event?.isTaggedHashes(followingTagSet) ?: false)) &&
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
it.author?.let { !account.isHidden(it) } ?: true &&
it.author?.let { !account.isHidden(it.pubkeyHex) } ?: true &&
it.isNewThread()
}
@ -30,7 +30,7 @@ object HomeNewThreadFeedFilter : FeedFilter<Note>() {
(it.event is LongTextNoteEvent) &&
(it.author?.pubkeyHex in followingKeySet || (it.event?.isTaggedHashes(followingTagSet) ?: false)) &&
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
it.author?.let { !account.isHidden(it) } ?: true &&
it.author?.let { !account.isHidden(it.pubkeyHex) } ?: true &&
it.isNewThread()
}