Node.js based forum software built for the modern web
resolving notifs issue, I hope
Julian Lam28dab60232b9
diff --git a/src/user.js b/src/user.jsindex c40e17fa6d..43b5dfdb6c 100644--- a/src/user.js+++ b/src/user.js@@ -1009,7 +1009,10 @@ var utils = require('./../public/src/utils.js'),next(null, notif_data);});}, function(err, notifs) {- notifs = notifs.sort(function(a, b) {+ notifs = notifs.filter(function(notif) {+ if (notif !== null) return true;+ else return false;+ }).sort(function(a, b) {return parseInt(b.datetime, 10) - parseInt(a.datetime, 10);}).map(function(notif) {notif.datetimeISO = new Date(parseInt(notif.datetime, 10)).toISOString();