|
|
@ -69,6 +69,10 @@ module.exports = function(User) {
|
|
|
|
winston.error('[user/jobs] Could not send daily digests: ' + err.message);
|
|
|
|
winston.error('[user/jobs] Could not send daily digests: ' + err.message);
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Remove expired notifications
|
|
|
|
|
|
|
|
notifications = notifications.filter(Boolean);
|
|
|
|
|
|
|
|
|
|
|
|
// Turn relative URLs into absolute ones
|
|
|
|
// Turn relative URLs into absolute ones
|
|
|
|
for(var i=0; i<notifications.length; ++i) {
|
|
|
|
for(var i=0; i<notifications.length; ++i) {
|
|
|
|
if (notifications[i].image.indexOf('http') !== 0) {
|
|
|
|
if (notifications[i].image.indexOf('http') !== 0) {
|
|
|
|