mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:04:22 +02:00
Issue 12858: Peertube avatars can now be fetched
This commit is contained in:
parent
6e94220642
commit
1a98961c3c
2 changed files with 11 additions and 2 deletions
|
@ -229,7 +229,12 @@ class Images
|
|||
}
|
||||
|
||||
if (empty($img_str)) {
|
||||
$img_str = DI::httpClient()->fetch($url, HttpClientAccept::IMAGE, 4);
|
||||
try {
|
||||
$img_str = DI::httpClient()->fetch($url, HttpClientAccept::IMAGE, 4);
|
||||
} catch (\Exception $exception) {
|
||||
Logger::notice('Image is invalid', ['url' => $url, 'exception' => $exception]);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
if (!$img_str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue