mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
filter falsy teasers
This commit is contained in:
@@ -64,7 +64,7 @@ module.exports = function (Topics) {
|
||||
handleBlocks(uid, _postData, next);
|
||||
},
|
||||
function (_postData, next) {
|
||||
postData = _postData;
|
||||
postData = _postData.filter(Boolean);
|
||||
var uids = _.uniq(postData.map(function (post) {
|
||||
return post.uid;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user