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);