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

pull/167/head
Vitor Pamplona 2023-02-24 17:24:09 -05:00
rodzic 3cdc77a277
commit c4046c0a88
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 }

Wyświetl plik

@ -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 }