mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
merge
This commit is contained in:
@@ -38,8 +38,12 @@ module.exports = function(Topics) {
|
||||
|
||||
Topics.addPostData = function(postData, uid, callback) {
|
||||
var pids = postData.map(function(post) {
|
||||
return post.pid;
|
||||
});
|
||||
return post && post.pid;
|
||||
}).filter(Boolean);
|
||||
|
||||
if (!Array.isArray(pids) || !pids.length) {
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
async.parallel({
|
||||
favourites: function(next) {
|
||||
|
||||
Reference in New Issue
Block a user