Node.js based forum software built for the modern web
fix: remote user avatars in notifications
Julian Lamaef1215fd676
diff --git a/src/notifications.js b/src/notifications.jsindex 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')) {