mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
stripping paragraph tags from post summaries in an effort to collapse it all into one paragraph block.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user