From d0f9763cca606fbf72ca52d0645dde4c27385fb7 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Fri, 24 Oct 2025 22:44:51 -0400 Subject: [PATCH] Fix saved posts not having proper pagination. --- .../infinityforreddit/post/PostPagingSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostPagingSource.java b/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostPagingSource.java index 0018b973..1f948ed5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostPagingSource.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostPagingSource.java @@ -278,7 +278,7 @@ public class PostPagingSource extends ListenableFuturePagingSource sortType.getTime()); } else { userPosts = api.getUserPostsOauthListenableFuture(APIUtils.AUTHORIZATION_BASE + accessToken, - subredditOrUserName, userWhere, loadParams.getKey(), sortType.getType(), sortType.getTime()); + subredditOrUserName, userWhere, loadParams.getKey(), USER_WHERE_SUBMITTED.equals(userWhere) ? sortType.getType() : null, USER_WHERE_SUBMITTED.equals(userWhere) ? sortType.getTime() : null); } ListenableFuture> pageFuture = Futures.transform(userPosts, this::transformData, executor);