diff --git a/src/user/jobs.js b/src/user/jobs.js index 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 ones for(var i=0; i