mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
IHTTPResult::getContentType is now a string again
This commit is contained in:
parent
732acbf7a7
commit
b4ede4a0ed
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ function mailstream_do_images($a, &$item, &$attachments) {
|
||||||
'data' => $curlResult->getBody(),
|
'data' => $curlResult->getBody(),
|
||||||
'guid' => hash("crc32", $url),
|
'guid' => hash("crc32", $url),
|
||||||
'filename' => basename($components['path']),
|
'filename' => basename($components['path']),
|
||||||
'type' => $curlResult->getContentType()[0] ?? ''
|
'type' => $curlResult->getContentType()
|
||||||
];
|
];
|
||||||
|
|
||||||
if (strlen($attachments[$url]['data'])) {
|
if (strlen($attachments[$url]['data'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue