From 2d55a4c8ec6c517ff01bccafd0416edbe85294c9 Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Sat, 5 Aug 2023 14:32:15 +0200 Subject: [PATCH] Fix issue with NSFW Communites This commit resolves the issue where posts from NSFW communities appeared on the Home page, but not when opening the community it self. Closes #49 --- .../java/eu/toldi/infinityforlemmy/post/PostPagingSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/post/PostPagingSource.java b/app/src/main/java/eu/toldi/infinityforlemmy/post/PostPagingSource.java index 9ec6b445..711dfc96 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/post/PostPagingSource.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/post/PostPagingSource.java @@ -251,7 +251,7 @@ public class PostPagingSource extends ListenableFuturePagingSource> loadSubredditPosts(@NonNull LoadParams loadParams, LemmyAPI api) { ListenableFuture> subredditPost; - subredditPost = api.getPosts(null,sortType.getType().value,loadParams.getKey(),25,null,subredditOrUserName,false,null); + subredditPost = api.getPosts(null,sortType.getType().value,loadParams.getKey(),25,null,subredditOrUserName,false,accessToken); ListenableFuture> pageFuture = Futures.transform(subredditPost, this::transformData, executor);