Skip to content

Node.js based forum software built for the modern web

check topic.cid

Barış Soner Uşaklı0de692188f9f
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;