diff --git a/src/topics/unread.js b/src/topics/unread.js index af1a58d779..26c6ff1901 100644 --- a/src/topics/unread.js +++ b/src/topics/unread.js @@ -116,6 +116,10 @@ module.exports = function(Topics) { } privileges.topics.filter('read', tids, uid, function(err, tids) { + if (err || !tids.length) { + return callback(err, []); + } + var keys = tids.map(function(tid) { return 'topic:' + tid; });