mirror of
https://github.com/friendica/friendica
synced 2025-05-08 14:24:13 +02:00
Merge remote-tracking branch 'upstream/develop' into ocr
This commit is contained in:
commit
5acfff1152
60 changed files with 526 additions and 488 deletions
|
@ -135,7 +135,7 @@ class Link
|
|||
}
|
||||
$fields = ['mimetype' => $curlResult->getHeader('Content-Type')[0]];
|
||||
|
||||
$img_str = $curlResult->getBody();
|
||||
$img_str = $curlResult->getBodyString();
|
||||
$image = new Image($img_str, Images::getMimeTypeByData($img_str));
|
||||
if ($image->isValid()) {
|
||||
$fields['mimetype'] = $image->getType();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue