From 0a73050de1c3423380636af0e12081f20420db96 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 22 Feb 2024 22:57:57 -0500 Subject: [PATCH] Increase API photo preview size for Mastodon API to 640 --- src/Factory/Api/Mastodon/Attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Factory/Api/Mastodon/Attachment.php b/src/Factory/Api/Mastodon/Attachment.php index 727b77630a..18207fa1be 100644 --- a/src/Factory/Api/Mastodon/Attachment.php +++ b/src/Factory/Api/Mastodon/Attachment.php @@ -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 = ''; }