stripping paragraph tags from post summaries in an effort to collapse it all into one paragraph block.

This commit is contained in:
Julian Lam
2014-04-04 09:21:17 -04:00
parent a7c5a5e819
commit b9aa0d2121
2 changed files with 2 additions and 6 deletions

View File

@@ -14,14 +14,10 @@ module.exports = function(Categories) {
}
db.getSortedSetRevRange('categories:recent_posts:cid:' + cid, 0, count - 1, function(err, pids) {
if (err) {
if (err || !pids || !pids.length) {
return callback(err, []);
}
if (!pids || !pids.length) {
return callback(null, []);
}
posts.getPostSummaryByPids(pids, true, callback);
});
};