Browse Source

Update ProfileFetcher.java

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
committed by GitHub
parent
commit
cc9a7f87f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java

2
app/src/main/java/awais/instagrabber/asyncs/ProfileFetcher.java

@ -48,7 +48,7 @@ public final class ProfileFetcher extends AsyncTask<Void, Void, ProfileModel> {
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");

Loading…
Cancel
Save