kopia lustrzana https://github.com/vitorpamplona/amethyst
Home doesn't need isAcceptable filter since all posts are coming from follows. Much faster.
rodzic
3cdc77a277
commit
c4046c0a88
|
@ -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 }
|
||||||
|
|
Ładowanie…
Reference in New Issue