From 79b8e79de0b904e0482e877ca707b49132224bce Mon Sep 17 00:00:00 2001 From: Nikolai Shcherbin Date: Fri, 25 Dec 2020 20:10:00 +0300 Subject: [PATCH] (fix): correct Instagram request --- src/Adapters/Instagram.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Adapters/Instagram.php b/src/Adapters/Instagram.php index 5cb6ebf4..1d0f4ca1 100644 --- a/src/Adapters/Instagram.php +++ b/src/Adapters/Instagram.php @@ -15,6 +15,8 @@ class Instagram extends Webpage */ public static function check(Response $response) { - return $response->isValid([200, 429]); + return $response->isValid([200, 429]) && $response->getUrl()->match([ + '*.instagram.*', + ]); } }