v1.18.x
Barış Soner Uşaklı 8 years ago
parent 14f3907aa4
commit 17d0759672

@ -7,7 +7,6 @@ var privileges = require('../privileges');
var posts = require('../posts');
module.exports = function (Groups) {
Groups.onNewPostMade = function (postData, callback) {
if (!parseInt(postData.uid, 10)) {
return setImmediate(callback);

@ -27,14 +27,14 @@ module.exports = function (Groups) {
Groups.getUserGroupMembership(set, uids, next);
},
function (memberOf, next) {
async.map(memberOf, function(memberOf, next) {
async.map(memberOf, function (memberOf, next) {
Groups.getGroupsData(memberOf, next);
}, next);
},
], callback);
};
Groups.getUserGroupMembership = function(set, uids, callback) {
Groups.getUserGroupMembership = function (set, uids, callback) {
async.waterfall([
function (next) {
db.getSortedSetRevRange(set, 0, -1, next);

@ -319,6 +319,5 @@ module.exports = function (Posts) {
db.sortedSetsRemove(keys, pid, next);
},
], callback);
}
};

Loading…
Cancel
Save