v1.18.x
Mega 9 years ago
parent f70d54a397
commit 0f89fc8214

@ -118,6 +118,7 @@ module.exports = function(Posts) {
var cids = topics.map(function(topic) { var cids = topics.map(function(topic) {
if (topic) { if (topic) {
topic.title = validator.escape(topic.title); topic.title = validator.escape(topic.title);
topic.deleted = parseInt(topic.deleted, 10) === 1;
} }
return topic && topic.cid; return topic && topic.cid;
}).filter(function(topic, index, array) { }).filter(function(topic, index, array) {
@ -145,4 +146,4 @@ module.exports = function(Posts) {
} }
return content; return content;
} }
}; };

Loading…
Cancel
Save