mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:42:54 +00:00
Only proxify images
This commit is contained in:
parent
b46b7b08ba
commit
c89547aead
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Attachment extends BaseFactory
|
||||||
$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_SMALL);
|
||||||
} else {
|
} else {
|
||||||
$url = Proxy::proxifyUrl($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_SMALL);
|
||||||
|
|
Loading…
Reference in a new issue