fix: remote user avatars in notifications

This commit is contained in:
Julian Lam
2024-03-05 14:42:25 -05:00
parent ae09aa2086
commit aef1215fd6

View File

@@ -88,7 +88,9 @@ Notifications.getMultiple = async function (nids) {
if (notification) { if (notification) {
intFields.forEach((field) => { intFields.forEach((field) => {
if (notification.hasOwnProperty(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')) { if (notification.path && !notification.path.startsWith('http')) {