]> git.mxchange.org Git - friendica.git/commitdiff
Videos are now working as well
authorMichael <heluecht@pirati.ca>
Thu, 10 Jun 2021 19:55:43 +0000 (19:55 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 10 Jun 2021 19:55:43 +0000 (19:55 +0000)
src/Factory/Api/Mastodon/Attachment.php

index 1345da9e854a5a671351426cb8ea65f6ed33425e..f7c0328f942ad0c4011bef610a52fcb32c7d9392 100644 (file)
@@ -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);