From 20d89f0f24b5dbf5bc6503e10f09e58ddb5e1375 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Sun, 26 Dec 2021 22:04:55 +0000 Subject: [PATCH] [COMPONENTS][Avatar] Make sure dimension values are integers [CARDS][Note] Fix assumed avatar dimension values --- components/Avatar/Avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Avatar/Avatar.php b/components/Avatar/Avatar.php index 203b6d31c0..d193f91eec 100644 --- a/components/Avatar/Avatar.php +++ b/components/Avatar/Avatar.php @@ -119,7 +119,7 @@ class Avatar extends Component $attachment = self::getAvatar($actor_id)->getAttachment(); return ['width' => (int) $attachment->getWidth(), 'height' => (int) $attachment->getHeight()]; } 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'))]; } }