Uses the inHidden in Hex

This commit is contained in:
Vitor Pamplona
2023-04-07 14:23:34 -04:00
parent cc44b4dd55
commit 9ee3da3910

View File

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