From aef1215fd676731845e106570150b05afd670d00 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 5 Mar 2024 14:42:25 -0500 Subject: [PATCH] fix: remote user avatars in notifications --- src/notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/notifications.js b/src/notifications.js index 1c1d2f7afd..037bd6366e 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -88,7 +88,9 @@ Notifications.getMultiple = async function (nids) { if (notification) { intFields.forEach((field) => { if (notification.hasOwnProperty(field)) { - notification[field] = parseInt(notification[field], 10) || 0; + notification[field] = utils.isNumber(notification[field]) ? + parseInt(notification[field], 10) || 0 : + notification[field]; } }); if (notification.path && !notification.path.startsWith('http')) {