mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-04 17:45:29 +00:00
Fix saved posts not having proper pagination.
This commit is contained in:
@ -278,7 +278,7 @@ public class PostPagingSource extends ListenableFuturePagingSource<String, Post>
|
||||
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<LoadResult<String, Post>> pageFuture = Futures.transform(userPosts, this::transformData, executor);
|
||||
|
||||
Reference in New Issue
Block a user