X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=dbba99fcffa5238d31c98a0d33a892ffa34eab30;hb=65b86fe0d556829c09e8c8f5c707b868ad37dfe1;hp=0be220c517697d74e2134f558603e8907d2df396;hpb=db60557a4f1066639e1af0650f1e5f13e576bcb1;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 0be220c517..dbba99fcff 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -32,7 +32,7 @@ use Friendica\Core\Renderer; use Friendica\Database\Database; use Friendica\Database\DBA; use Friendica\DI; -use Friendica\Network\HTTPClient\Client\HttpClient; +use Friendica\Network\HTTPClient\Client\HttpClientAccept; use Friendica\Util\DateTimeFormat; use Friendica\Util\Network; use Friendica\Util\ParseUrl; @@ -98,7 +98,7 @@ class OEmbed if (!in_array($ext, $noexts)) { // try oembed autodiscovery - $html_text = DI::httpClient()->fetch($embedurl, 15, HttpClient::ACCEPT_HTML); + $html_text = DI::httpClient()->fetch($embedurl, HttpClientAccept::HTML, 15); if (!empty($html_text)) { $dom = new DOMDocument(); if (@$dom->loadHTML($html_text)) {