From: Michael Date: Thu, 10 Jun 2021 19:55:43 +0000 (+0000) Subject: Videos are now working as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ea30af752fe0fbb025593c95f30786482dce533;p=friendica.git Videos are now working as well --- diff --git a/src/Factory/Api/Mastodon/Attachment.php b/src/Factory/Api/Mastodon/Attachment.php index 1345da9e85..f7c0328f94 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 = ''; - $preview = ''; + $url = $attachment['url']; + $preview = $attachment['preview'] ?? ''; } $object = new \Friendica\Object\Api\Mastodon\Attachment($attachment, $type, $url, $preview, $remote);