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);
|
$preview = Proxy::proxifyUrl($attachment['url'], false, Proxy::SIZE_SMALL);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$url = $attachment['url'];
|
$url = Proxy::proxifyUrl($attachment['url']);
|
||||||
$preview = $attachment['preview'] ?? '';
|
$preview = Proxy::proxifyUrl($attachment['preview'] ?? '');
|
||||||
}
|
}
|
||||||
|
|
||||||
$object = new \Friendica\Object\Api\Mastodon\Attachment($attachment, $type, $url, $preview, $remote);
|
$object = new \Friendica\Object\Api\Mastodon\Attachment($attachment, $type, $url, $preview, $remote);
|
||||||
|
|
Loading…
Reference in a new issue