Node.js based forum software built for the modern web
pruning empy notifications for daily emailer
Julian Lame6d0eede4fc5
diff --git a/src/user/jobs.js b/src/user/jobs.jsindex 160f3bb33c..d06a8386cd 100644--- a/src/user/jobs.js+++ b/src/user/jobs.js@@ -69,6 +69,10 @@ module.exports = function(User) {winston.error('[user/jobs] Could not send daily digests: ' + err.message);return next(err);}++ // Remove expired notifications+ notifications = notifications.filter(Boolean);+// Turn relative URLs into absolute onesfor(var i=0; i<notifications.length; ++i) {if (notifications[i].image.indexOf('http') !== 0) {