X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=4e1ae2946f84f442a1b072f4eb07fef68d26f75a;hb=4803b9915731e0e75045acf747e0cee03f2b1112;hp=5390a4bc5730165c503a2cb4c4f8612b05221975;hpb=3cef3ab107f87f999cf4adcc909259925a631cea;p=friendica.git
diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php
index 5390a4bc57..4e1ae2946f 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, 15, 'text/*');
if (!empty($html_text)) {
$dom = new DOMDocument();
if (@$dom->loadHTML($html_text)) {
@@ -111,7 +111,7 @@ class OEmbed
// but their OEmbed endpoint is only accessible by HTTPS ¯\_(ã)_/¯
$href = str_replace(['http://www.youtube.com/', 'http://player.vimeo.com/'],
['https://www.youtube.com/', 'https://player.vimeo.com/'], $href);
- $result = DI::httpRequest()->fetchFull($href . '&maxwidth=' . $a->getThemeInfoValue('videowidth'));
+ $result = DI::httpClient()->fetchFull($href . '&maxwidth=' . $a->getThemeInfoValue('videowidth'));
if ($result->getReturnCode() === 200) {
$json_string = $result->getBody();
break;
@@ -236,14 +236,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;
}