Proxify the media url

2022.09-rc
Michael 2021-06-11 03:51:11 +00:00
rodzic 4ea30af752
commit 84028d7342
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);