From 0de692188f9f341444307ad361d0aac03fd7ed8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 5 Oct 2017 11:39:35 -0400 Subject: [PATCH] check topic.cid --- src/topics/recent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/recent.js b/src/topics/recent.js index 135a15859b..7242f6bb06 100644 --- a/src/topics/recent.js +++ b/src/topics/recent.js @@ -83,7 +83,7 @@ module.exports = function (Topics) { }, function (results, next) { tids = results.topicData.filter(function (topic) { - if (topic) { + if (topic && topic.cid) { return results.ignoredCids.indexOf(topic.cid.toString()) === -1; } return false;