mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 19:07:09 +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.event is TextNoteEvent || it.event is RepostEvent)
|
||||||
&& it.author in user.follows
|
&& it.author in user.follows
|
||||||
// && 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 { !HomeNewThreadFeedFilter.account.isHidden(it) } ?: true
|
||||||
&& !it.isNewThread()
|
&& !it.isNewThread()
|
||||||
}
|
}
|
||||||
.sortedBy { it.event?.createdAt }
|
.sortedBy { it.event?.createdAt }
|
||||||
|
@@ -17,6 +17,7 @@ object HomeNewThreadFeedFilter: FeedFilter<Note>() {
|
|||||||
(it.event is TextNoteEvent || it.event is RepostEvent)
|
(it.event is TextNoteEvent || it.event is RepostEvent)
|
||||||
&& it.author in user.follows
|
&& it.author in user.follows
|
||||||
// && 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.isNewThread()
|
&& it.isNewThread()
|
||||||
}
|
}
|
||||||
.sortedBy { it.event?.createdAt }
|
.sortedBy { it.event?.createdAt }
|
||||||
|
Reference in New Issue
Block a user