mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 11:11:44 +01:00
Home doesn't need isAcceptable filter since all posts are coming from follows. Much faster.
This commit is contained in:
parent
3cdc77a277
commit
c4046c0a88
@ -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 }
|
||||
|
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user