[COMPONENTS][Avatar] Make sure dimension values are integers
[CARDS][Note] Fix assumed avatar dimension values
This commit is contained in:
parent
19975b8d8d
commit
20d89f0f24
|
@ -119,7 +119,7 @@ class Avatar extends Component
|
||||||
$attachment = self::getAvatar($actor_id)->getAttachment();
|
$attachment = self::getAvatar($actor_id)->getAttachment();
|
||||||
return ['width' => (int) $attachment->getWidth(), 'height' => (int) $attachment->getHeight()];
|
return ['width' => (int) $attachment->getWidth(), 'height' => (int) $attachment->getHeight()];
|
||||||
} catch (NoAvatarException) {
|
} catch (NoAvatarException) {
|
||||||
return ['width' => Common::config('thumbnail', 'small'), 'height' => Common::config('thumbnail', 'small')];
|
return ['width' => (int) (Common::config('thumbnail', 'small')), 'height' => (int) (Common::config('thumbnail', 'small'))];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user