From 06f4ab56c833da00d47c6611d6f5a8081b049c28 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Tue, 1 Dec 2020 19:53:36 +0900 Subject: [PATCH] Set feed item as saved or not from response. Closes https://github.com/austinhuang0131/barinsta/issues/369 --- .../main/java/awais/instagrabber/utils/ResponseBodyUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java b/app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java index 0f4cb41c..e0f028ce 100644 --- a/app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java @@ -642,7 +642,7 @@ public final class ResponseBodyUtils { .setCommentsCount(itemJson.optInt("comment_count")) .setTimestamp(itemJson.optLong("taken_at", -1)) .setLiked(itemJson.optBoolean("has_liked")) - // .setBookmarked() + .setBookmarked(itemJson.optBoolean("has_viewer_saved")) .setLikesCount(itemJson.optInt("like_count")) .setLocationName(locationJson != null ? locationJson.optString("name") : null) .setLocationId(locationJson != null ? String.valueOf(locationJson.optLong("pk")) : null)