diff --git a/src/user/digest.js b/src/user/digest.js index 6c3adba7f7..a253ae62af 100644 --- a/src/user/digest.js +++ b/src/user/digest.js @@ -84,6 +84,11 @@ module.exports = (function(Digest) { notifications = notifications.filter(Boolean); + // If there are no notifications and no new topics, don't bother sending a digest + if (!notifications.length && !data.topics.topics.length) { + return next(); + } + for(var i=0; i