Home doesn't need isAcceptable filter since all posts are coming from follows. Much faster.

This commit is contained in:
Vitor Pamplona 2023-02-24 17:24:09 -05:00
parent 3cdc77a277
commit c4046c0a88
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ object HomeConversationsFeedFilter: FeedFilter<Note>() {
.filter {
(it.event is TextNoteEvent || it.event is RepostEvent)
&& it.author in user.follows
&& account.isAcceptable(it)
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
&& !it.isNewThread()
}
.sortedBy { it.event?.createdAt }

View File

@ -26,7 +26,7 @@ object HomeNewThreadFeedFilter: FeedFilter<Note>() {
.filter {
(it.event is TextNoteEvent || it.event is RepostEvent)
&& it.author in user.follows
&& account.isAcceptable(it)
// && account.isAcceptable(it) // This filter follows only. No need to check if acceptable
&& it.isNewThread()
}
.sortedBy { it.event?.createdAt }