Increase API photo preview size for Mastodon API to 640
This commit is contained in:
parent
a25dbf839a
commit
0a73050de1
|
@ -95,12 +95,12 @@ class Attachment extends BaseFactory
|
||||||
$remote = $attachment['url'];
|
$remote = $attachment['url'];
|
||||||
if ($type == 'image') {
|
if ($type == 'image') {
|
||||||
$url = Post\Media::getPreviewUrlForId($attachment['id']);
|
$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 {
|
} else {
|
||||||
$url = $attachment['url'];
|
$url = $attachment['url'];
|
||||||
|
|
||||||
if (!empty($attachment['preview'])) {
|
if (!empty($attachment['preview'])) {
|
||||||
$preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_SMALL);
|
$preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_MEDIUM);
|
||||||
} else {
|
} else {
|
||||||
$preview = '';
|
$preview = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user