Merge pull request #1032 from nupplaphil/task/psr7_remove_binary

[various] Remove $binary flag for HTTPRequest
This commit is contained in:
Michael Vogel 2020-10-18 21:19:32 +02:00 committed by GitHub
commit 29586d3498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -1326,7 +1326,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);