mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 14:23:10 +02:00
Home doesn't need isAcceptable filter since all posts are coming from follows. Much faster.
This commit is contained in:
@@ -16,7 +16,7 @@ object HomeConversationsFeedFilter: FeedFilter<Note>() {
|
|||||||
.filter {
|
.filter {
|
||||||
(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)
|
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
|
||||||
&& !it.isNewThread()
|
&& !it.isNewThread()
|
||||||
}
|
}
|
||||||
.sortedBy { it.event?.createdAt }
|
.sortedBy { it.event?.createdAt }
|
||||||
|
@@ -26,7 +26,7 @@ object HomeNewThreadFeedFilter: FeedFilter<Note>() {
|
|||||||
.filter {
|
.filter {
|
||||||
(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)
|
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
|
||||||
&& it.isNewThread()
|
&& it.isNewThread()
|
||||||
}
|
}
|
||||||
.sortedBy { it.event?.createdAt }
|
.sortedBy { it.event?.createdAt }
|
||||||
|
Reference in New Issue
Block a user