mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: remote user avatars in notifications
This commit is contained in:
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user