1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

Update ProfileFetcher.java

This commit is contained in:
Austin Huang 2020-09-24 21:49:33 -04:00 committed by GitHub
parent a004bfa9a9
commit cc9a7f87f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ public final class ProfileFetcher extends AsyncTask<Void, Void, ProfileModel> {
final JSONObject timelineMedia = user.getJSONObject("edge_owner_to_timeline_media"); final JSONObject timelineMedia = user.getJSONObject("edge_owner_to_timeline_media");
if (timelineMedia.has("edges")) { if (timelineMedia.has("edges")) {
final JSONArray edges = timelineMedia.getJSONArray("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"); String url = user.optString("external_url");