mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 02:48:48 +00:00
Images::getInfoFromURL[Cached]() will both return empty arrays on error and that needs to be reflected here, too.
This commit is contained in:
parent
4e825fe621
commit
b1b26062fc
2 changed files with 2 additions and 2 deletions
|
@ -1279,7 +1279,7 @@ function twitter_fix_avatar($avatar)
|
|||
$new_avatar = str_replace("_normal.", "_400x400.", $avatar);
|
||||
|
||||
$info = Images::getInfoFromURLCached($new_avatar);
|
||||
if (!$info) {
|
||||
if (empty($info)) {
|
||||
$new_avatar = $avatar;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue