Skip to content

Commit c7b14e0

Browse files
committed
fixed instagram oembed provider #118
1 parent 43c6b13 commit c7b14e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Providers/OEmbed/Instagram.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public static function getEndPoint(Url $url)
1919
*/
2020
public static function getPatterns()
2121
{
22-
return ['https?://instagram.com/p/*'];
22+
return [
23+
'https?://instagram.com/p/*',
24+
'https?://www.instagram.com/p/*',
25+
];
2326
}
2427

2528
/**

tests/InstagramTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testHttp()
2121
public function testHttps()
2222
{
2323
$this->assertEmbed(
24-
'https://instagram.com/p/ySl7G9tO_q/',
24+
'https://www.instagram.com/p/ySl7G9tO_q/',
2525
[
2626
'title' => 'Se va llenando el lugar donde Tsipras dará su mitin. Aún pendientes de si Syriza logra la mayoría absoluta, pero ya seguros de la victoria de la izquierda.',
2727
'imageWidth' => 640,

0 commit comments

Comments
 (0)