mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 22:06:29 +02:00
Hides hidden users from main feeds.
This commit is contained in:
@@ -17,6 +17,7 @@ object HomeConversationsFeedFilter: FeedFilter<Note>() {
|
||||
(it.event is TextNoteEvent || it.event is RepostEvent)
|
||||
&& it.author in user.follows
|
||||
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
|
||||
&& it.author?.let { !HomeNewThreadFeedFilter.account.isHidden(it) } ?: true
|
||||
&& !it.isNewThread()
|
||||
}
|
||||
.sortedBy { it.event?.createdAt }
|
||||
|
@@ -17,6 +17,7 @@ object HomeNewThreadFeedFilter: FeedFilter<Note>() {
|
||||
(it.event is TextNoteEvent || it.event is RepostEvent)
|
||||
&& it.author in user.follows
|
||||
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
|
||||
&& it.author?.let { !account.isHidden(it) } ?: true
|
||||
&& it.isNewThread()
|
||||
}
|
||||
.sortedBy { it.event?.createdAt }
|
||||
|
Reference in New Issue
Block a user