]> git.mxchange.org Git - friendica.git/commitdiff
Increase API photo preview size for Mastodon API to 640
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 23 Feb 2024 03:57:57 +0000 (22:57 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 24 Feb 2024 03:41:21 +0000 (22:41 -0500)
src/Factory/Api/Mastodon/Attachment.php

index 727b77630a70f899f4d94b20358b942bc21a48ed..18207fa1beb77ec7c9396837f6c52decb45f5b1e 100644 (file)
@@ -95,12 +95,12 @@ class Attachment extends BaseFactory
                $remote = $attachment['url'];
                if ($type == 'image') {
                        $url     = Post\Media::getPreviewUrlForId($attachment['id']);
-                       $preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_SMALL);
+                       $preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_MEDIUM);
                } else {
                        $url = $attachment['url'];
 
                        if (!empty($attachment['preview'])) {
-                               $preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_SMALL);
+                               $preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_MEDIUM);
                        } else {
                                $preview = '';
                        }