mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 04:37:25 +01:00
Fix "Old" sort type for multi communities
This commit is contained in:
parent
0fd7203fa3
commit
133dc4a69c
@ -12,6 +12,7 @@ import eu.toldi.infinityforlemmy.post.Post
|
||||
import eu.toldi.infinityforlemmy.post.enrich.PostEnricher
|
||||
import eu.toldi.infinityforlemmy.postfilter.PostFilter
|
||||
import eu.toldi.infinityforlemmy.utils.MultiCommunityUtils.sortByNewest
|
||||
import eu.toldi.infinityforlemmy.utils.MultiCommunityUtils.sortByOldest
|
||||
import eu.toldi.infinityforlemmy.utils.MultiCommunityUtils.sortByScore
|
||||
import retrofit2.HttpException
|
||||
import retrofit2.Response
|
||||
@ -79,6 +80,10 @@ class MulticommunityPagingSource(
|
||||
sortByNewest(combinedPosts)
|
||||
}
|
||||
|
||||
SortType.Type.OLD -> {
|
||||
sortByOldest(combinedPosts)
|
||||
}
|
||||
|
||||
SortType.Type.TOP_ALL, SortType.Type.TOP_YEAR, SortType.Type.TOP_NINE_MONTHS, SortType.Type.TOP_SIX_MONTHS, SortType.Type.TOP_THREE_MONTHS, SortType.Type.TOP_MONTH, SortType.Type.TOP_WEEK, SortType.Type.TOP_DAY, SortType.Type.TOP_TWELVE_HOURS, SortType.Type.TOP_SIX_HOURS, SortType.Type.TOP_HOUR
|
||||
-> sortByScore(combinedPosts)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user