X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=dbba99fcffa5238d31c98a0d33a892ffa34eab30;hb=65b86fe0d556829c09e8c8f5c707b868ad37dfe1;hp=e97afdc483ba24e2cec69b1b7de8d10efa026dad;hpb=7fb9e1c7c8f5f4887e44aadf6115b68c6cc66d03;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index e97afdc483..dbba99fcff 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -1,6 +1,6 @@ fetch($embedurl, 15, 'text/*'); + $html_text = DI::httpClient()->fetch($embedurl, HttpClientAccept::HTML, 15); if (!empty($html_text)) { $dom = new DOMDocument(); if (@$dom->loadHTML($html_text)) { @@ -236,14 +237,14 @@ class OEmbed break; case "photo": - $ret .= ''; + $ret .= ''; break; case "link": break; case "rich": - $ret .= ProxyUtils::proxifyHtml($oembed->html); + $ret .= Proxy::proxifyHtml($oembed->html); break; }