check topic.cid

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 73eadd47df
commit 0de692188f

@ -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;

Loading…
Cancel
Save