diff --git a/src/Services/OEmbedService.php b/src/Services/OEmbedService.php index c7d62729..44affe1f 100644 --- a/src/Services/OEmbedService.php +++ b/src/Services/OEmbedService.php @@ -27,8 +27,13 @@ public function parse(string $url): ?array return $cached; } + $endpoint = $this->getEndpointUrl($url); + if ($endpoint === null) { + return null; + } + $data = $this->fetch( - $this->getEndpointUrl($url), + $endpoint, compact('url') );