v1.18.x
Barış Soner Uşaklı 8 years ago
parent 1b6d96dde7
commit 5c005bbbdf

@ -338,7 +338,7 @@ Flags.create = function (type, id, uid, reason, timestamp, callback) {
if (type === 'post') {
tasks.push(async.apply(db.sortedSetAdd.bind(db), 'flags:byPid:' + id, timestamp, flagId)); // by target pid
if (targetUid) {
tasks.push(async.apply(db.sortedSetIncrBy, 'users:flags', 1, targetUid));
tasks.push(async.apply(db.sortedSetIncrBy.bind(db), 'users:flags', 1, targetUid));
}
}

Loading…
Cancel
Save