]> git.mxchange.org Git - friendica.git/commitdiff
Fix string interpolation in Model\Photo::upload
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 20 Nov 2022 22:07:08 +0000 (17:07 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 20 Nov 2022 22:07:08 +0000 (17:07 -0500)
src/Model/Photo.php

index 550d802e8124b81badc3f372279b79f4b9d2c3fc..7c620b0ad45bb6afc9e95119bf518c788c0353a5 100644 (file)
@@ -1130,8 +1130,8 @@ class Photo
                $picture['height']      = $photo['height'];
                $picture['type']        = $photo['type'];
                $picture['albumpage']   = DI::baseUrl() . '/photos/' . $user['nickname'] . '/image/' . $resource_id;
-               $picture['picture']     = DI::baseUrl() . '/photo/{$resource_id}-0.' . $image->getExt();
-               $picture['preview']     = DI::baseUrl() . '/photo/{$resource_id}-{$smallest}.' . $image->getExt();
+               $picture['picture']     = DI::baseUrl() . '/photo/' . $resource_id . '-0.' . $image->getExt();
+               $picture['preview']     = DI::baseUrl() . '/photo/' . $resource_id . '-' . $smallest . '.' . $image->getExt();
 
                Logger::info('upload done', ['picture' => $picture]);
                return $picture;
@@ -1272,4 +1272,3 @@ class Photo
                return $resource_id;
        }
 }
-