1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00
This commit is contained in:
Austin Huang 2021-01-06 13:47:19 -05:00
parent b7a40b7b39
commit f1e6c80421
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -965,7 +965,7 @@ public final class ResponseBodyUtils {
JSONObject tappableObject = data.getJSONArray("story_cta").getJSONObject(0).getJSONArray("links").getJSONObject(0); JSONObject tappableObject = data.getJSONArray("story_cta").getJSONObject(0).getJSONArray("links").getJSONObject(0);
String swipeUpUrl = tappableObject.optString("webUri"); String swipeUpUrl = tappableObject.optString("webUri");
final String backupSwipeUpUrl = swipeUpUrl; final String backupSwipeUpUrl = swipeUpUrl;
if (swipeUpUrl != null && swipeUpUrl.startsWith("https://l.instagram.com/") { if (swipeUpUrl != null && swipeUpUrl.startsWith("https://l.instagram.com/")) {
swipeUpUrl = Uri.parse(swipeUpUrl).getQueryParameter("u"); swipeUpUrl = Uri.parse(swipeUpUrl).getQueryParameter("u");
} }
if (swipeUpUrl != null && swipeUpUrl.startsWith("http")) if (swipeUpUrl != null && swipeUpUrl.startsWith("http"))