Move "HTTPRequest::finalUrl" dynamic
parent
f36ca4fcf4
commit
90193bd02b
|
@ -1449,7 +1449,7 @@ function statusnet_convertmsg(App $a, $body)
|
||||||
|
|
||||||
Logger::log("statusnet_convertmsg: expanding url " . $match[1], Logger::DEBUG);
|
Logger::log("statusnet_convertmsg: expanding url " . $match[1], Logger::DEBUG);
|
||||||
|
|
||||||
$expanded_url = HTTPRequest::finalUrl($match[1]);
|
$expanded_url = DI::httpRequest()->finalUrl($match[1]);
|
||||||
|
|
||||||
Logger::log("statusnet_convertmsg: fetching data for " . $expanded_url, Logger::DEBUG);
|
Logger::log("statusnet_convertmsg: fetching data for " . $expanded_url, Logger::DEBUG);
|
||||||
|
|
||||||
|
|
|
@ -1296,7 +1296,7 @@ function twitter_expand_entities($body, stdClass $status, $picture)
|
||||||
|
|
||||||
$expanded_url = $url->expanded_url;
|
$expanded_url = $url->expanded_url;
|
||||||
|
|
||||||
$final_url = HTTPRequest::finalUrl($url->expanded_url);
|
$final_url = DI::httpRequest()->finalUrl($url->expanded_url);
|
||||||
|
|
||||||
$oembed_data = OEmbed::fetchURL($final_url);
|
$oembed_data = OEmbed::fetchURL($final_url);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue