From f678468d429b597ce5ff42d6979fc8aa370d8fe8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 16 Feb 2024 02:29:12 +0000 Subject: [PATCH] Bluesky/Twitter: New parameter added for rhe picture creation --- bluesky/bluesky.php | 2 +- twitter/twitter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bluesky/bluesky.php b/bluesky/bluesky.php index a2c85ad37..fe1faab18 100644 --- a/bluesky/bluesky.php +++ b/bluesky/bluesky.php @@ -896,7 +896,7 @@ function bluesky_upload_blob(int $uid, array $photo): ?stdClass $retrial = Worker::getRetrial(); $content = Photo::getImageForPhoto($photo); - $picture = new Image($content, $photo['type']); + $picture = new Image($content, $photo['type'], $photo['filename']); $height = $picture->getHeight(); $width = $picture->getWidth(); $size = strlen($content); diff --git a/twitter/twitter.php b/twitter/twitter.php index b01345b74..11c163efc 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -308,7 +308,7 @@ function twitter_upload_image(int $uid, array $image, int $retrial) $picturedata = Photo::getImageForPhoto($photo); - $picture = new Image($picturedata, $photo['type']); + $picture = new Image($picturedata, $photo['type'], $photo['filename']); $height = $picture->getHeight(); $width = $picture->getWidth(); $size = strlen($picturedata);