1
1
Fork 0

Only proxify images

This commit is contained in:
Michael 2021-06-27 19:06:05 +00:00
parent b46b7b08ba
commit c89547aead

View file

@ -70,7 +70,7 @@ class Attachment extends BaseFactory
$url = Post\Media::getPreviewUrlForId($attachment['id']);
$preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_SMALL);
} else {
$url = Proxy::proxifyUrl($attachment['url']);
$url = $attachment['url'];
if (!empty($attachment['preview'])) {
$preview = Post\Media::getPreviewUrlForId($attachment['id'], Proxy::SIZE_SMALL);