mirror of
https://github.com/friendica/friendica
synced 2024-11-19 09:43:45 +00:00
Proxify the media url
This commit is contained in:
parent
4ea30af752
commit
84028d7342
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue