From: Michael Date: Sun, 8 Oct 2023 19:49:18 +0000 (+0000) Subject: Fix images in the API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd9fc0ddecbc3380930d97427e19e80bf2076d5d;p=friendica.git Fix images in the API --- diff --git a/src/Model/Post/Media.php b/src/Model/Post/Media.php index 64f44c198d..538c75091f 100644 --- a/src/Model/Post/Media.php +++ b/src/Model/Post/Media.php @@ -1012,7 +1012,7 @@ class Media */ public static function getPreviewUrlForId(int $id, string $size = ''): string { - return '/photo/preview/' . + return DI::baseUrl() . '/photo/preview/' . (Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') . $id; } @@ -1026,7 +1026,7 @@ class Media */ public static function getUrlForId(int $id, string $size = ''): string { - return '/photo/media/' . + return DI::baseUrl() . '/photo/media/' . (Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') . $id; }