mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-15 12:58:49 +00:00
Move "Network::finalUrl" to "HTTPRequest" class
This commit is contained in:
parent
58116f037e
commit
5843170738
2 changed files with 2 additions and 2 deletions
|
@ -1452,7 +1452,7 @@ function statusnet_convertmsg(App $a, $body, $no_tags = false)
|
||||||
|
|
||||||
Logger::log("statusnet_convertmsg: expanding url " . $match[1], Logger::DEBUG);
|
Logger::log("statusnet_convertmsg: expanding url " . $match[1], Logger::DEBUG);
|
||||||
|
|
||||||
$expanded_url = Network::finalUrl($match[1]);
|
$expanded_url = 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);
|
||||||
|
|
||||||
|
|
|
@ -1174,7 +1174,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
|
||||||
|
|
||||||
$expanded_url = $url->expanded_url;
|
$expanded_url = $url->expanded_url;
|
||||||
|
|
||||||
$final_url = Network::finalUrl($url->expanded_url);
|
$final_url = HTTPRequest::finalUrl($url->expanded_url);
|
||||||
|
|
||||||
$oembed_data = OEmbed::fetchURL($final_url);
|
$oembed_data = OEmbed::fetchURL($final_url);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue