From cc9a7f87f9d0f0b200545019c76fc5739f79ba79 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 24 Sep 2020 21:49:33 -0400 Subject: [PATCH] Update ProfileFetcher.java --- app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java b/app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java index 5bae0f88..678d2d0c 100755 --- a/app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java +++ b/app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java @@ -48,7 +48,7 @@ public final class ProfileFetcher extends AsyncTask { final JSONObject timelineMedia = user.getJSONObject("edge_owner_to_timeline_media"); if (timelineMedia.has("edges")) { final JSONArray edges = timelineMedia.getJSONArray("edges"); - if (edges.length() > 0 || timelineMedia.getLong("count") == 0L) reallyPrivate = false; + if (edges.length() > 0 && timelineMedia.getLong("count") > 0L) reallyPrivate = false; } String url = user.optString("external_url");