mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-29 21:42:31 +02:00
Uses the inHidden in Hex
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user