mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3)
This commit is contained in:
parent
0be3439cb7
commit
94b41e0859
4 changed files with 4 additions and 4 deletions
|
@ -1315,7 +1315,7 @@ function twitter_expand_entities($body, stdClass $status, $picture)
|
|||
} elseif ($oembed_data->type != 'link') {
|
||||
$replace = '[url=' . $expanded_url . ']' . $url->display_url . '[/url]';
|
||||
} else {
|
||||
$img_str = DI::httpRequest()->fetch($final_url, true, 4);
|
||||
$img_str = DI::httpRequest()->fetch($final_url, 4);
|
||||
|
||||
$tempfile = tempnam(get_temppath(), 'cache');
|
||||
file_put_contents($tempfile, $img_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue