]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Photo.php
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
[friendica.git] / src / Model / Photo.php
index 6dd9212832fe9c830d406fc89b592a727846c9a6..16acab69aacd627c2fd721f173e853ac0d8e9785 100644 (file)
@@ -353,7 +353,7 @@ class Photo
         * @return array
         * @throws \Exception
         */
-       public static function createPhotoForExternalResource(string $url, int $uid = 0, string $mimetype = '', string $blurhash = '', int $width = 0, int $height = 0): array
+       public static function createPhotoForExternalResource(string $url, int $uid = 0, string $mimetype = '', string $blurhash = null, int $width = null, int $height = null): array
        {
                if (empty($mimetype)) {
                        $mimetype = Images::guessTypeByExtension($url);
@@ -1325,7 +1325,7 @@ class Photo
                        logger::warning('profile banner upload with scale 3 (960) failed');
                }
 
-               logger::info('new profile banner upload ended');
+               logger::info('new profile banner upload ended', ['uid' => $uid, 'resource_id' => $resource_id, 'filename' => $filename]);
 
                $condition = ["`photo-type` = ? AND `resource-id` != ? AND `uid` = ?", self::USER_BANNER, $resource_id, $uid];
                self::update(['photo-type' => self::DEFAULT], $condition);