From b48976efef3817c9d2ffbb8bbe67323f5247c878 Mon Sep 17 00:00:00 2001 From: Avnerus Date: Wed, 25 Nov 2020 13:34:47 +0200 Subject: [PATCH] Support text/json+oembed --- application/src/Media/Ingester/OEmbed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/Media/Ingester/OEmbed.php b/application/src/Media/Ingester/OEmbed.php index adf83a4573..29b4c98645 100644 --- a/application/src/Media/Ingester/OEmbed.php +++ b/application/src/Media/Ingester/OEmbed.php @@ -77,7 +77,7 @@ public function ingest(Media $media, Request $request, ErrorStore $errorStore) $document = $response->getBody(); $dom = new Query($document); - $oEmbedLinks = $dom->queryXpath('//link[@rel="alternate" or @rel="alternative"][@type="application/json+oembed"]'); + $oEmbedLinks = $dom->queryXpath('//link[@rel="alternate" or @rel="alternative"][@type="application/json+oembed" or @type="text/json+oembed"]'); if (!count($oEmbedLinks)) { $errorStore->addError('o:source', 'No OEmbed links were found at the given URI'); return;