From dad2701aee3c3873713fdf5f63e81b9f18d10e73 Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Tue, 25 Jul 2023 16:54:53 +0200 Subject: [PATCH] Ensure NSFW flag accurately reflects community data --- .../eu/toldi/infinityforlemmy/subreddit/ParseSubredditData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/subreddit/ParseSubredditData.java b/app/src/main/java/eu/toldi/infinityforlemmy/subreddit/ParseSubredditData.java index da1989ff..afe293cc 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/subreddit/ParseSubredditData.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/subreddit/ParseSubredditData.java @@ -54,7 +54,7 @@ public class ParseSubredditData { int instanceId = community.getInt("instance_id"); int subscribers = subredditDataJsonObject.getJSONObject("counts").getInt("subscribers"); - return new SubredditData(id,name,title,description,removed,published,updated,deleted,nsfw,actorId,local,iconUrl,bannerImageUrl,hidden,postingRestrictedToMods,instanceId,subscribers); + return new SubredditData(id,name,title,description,removed,published,updated,deleted,isNSFW,actorId,local,iconUrl,bannerImageUrl,hidden,postingRestrictedToMods,instanceId,subscribers); } interface ParseSubredditDataListener {