mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Move internal recursion-counter to the end of all cur/fetchUrl parameters
This commit is contained in:
parent
f6c8476228
commit
8562422ee2
4 changed files with 4 additions and 5 deletions
|
@ -1184,7 +1184,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
|
|||
} elseif ($oembed_data->type != 'link') {
|
||||
$body = str_replace($url->url, '[url=' . $expanded_url . ']' . $url->display_url . '[/url]', $body);
|
||||
} else {
|
||||
$img_str = Network::fetchUrl($final_url, true, $redirects, 4);
|
||||
$img_str = Network::fetchUrl($final_url, true, 4);
|
||||
|
||||
$tempfile = tempnam(get_temppath(), 'cache');
|
||||
file_put_contents($tempfile, $img_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue