Node.js based forum software built for the modern web
npnp, I totally meant to remove a method that's still in use...
Julian Lam37d426dddb33
diff --git a/src/user/notifications.js b/src/user/notifications.jsindex 3a11b06a0a..c3ea4b9c23 100644--- a/src/user/notifications.js+++ b/src/user/notifications.js@@ -39,6 +39,20 @@ var async = require('async'),});};+ UserNotifications.getAll = function(uid, count, callback) {+ getNotifications(uid, count, function(err, notifs) {+ if (err) {+ return callback(err);+ }+ notifs = notifs.unread.concat(notifs.read);+ notifs = notifs.filter(Boolean).sort(function(a, b) {+ return b.datetime - a.datetime;+ });++ callback(null, notifs);+ });+ };+function getNotifications(uid, count, callback) {async.parallel({unread: function(next) {