From: Michael Date: Fri, 11 Jun 2021 03:51:11 +0000 (+0000) Subject: Proxify the media url X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=84028d7342431d134df5f5c4de4e47107abadc6d;p=friendica.git Proxify the media url --- diff --git a/src/Factory/Api/Mastodon/Attachment.php b/src/Factory/Api/Mastodon/Attachment.php index f7c0328f94..f039c1a233 100644 --- a/src/Factory/Api/Mastodon/Attachment.php +++ b/src/Factory/Api/Mastodon/Attachment.php @@ -86,8 +86,8 @@ class Attachment extends BaseFactory $preview = Proxy::proxifyUrl($attachment['url'], false, Proxy::SIZE_SMALL); } } else { - $url = $attachment['url']; - $preview = $attachment['preview'] ?? ''; + $url = Proxy::proxifyUrl($attachment['url']); + $preview = Proxy::proxifyUrl($attachment['preview'] ?? ''); } $object = new \Friendica\Object\Api\Mastodon\Attachment($attachment, $type, $url, $preview, $remote);