update state on new flag so action history is appended

v1.18.x
Julian Lam 8 years ago
parent 08a9449843
commit 597e375463

@ -60,6 +60,13 @@ module.exports = function(Posts) {
}
}
], next);
},
function(data, next) {
if (data[1] === 1) { // Only update state on new flag
Posts.updateFlagData(uid, post.pid, {
state: 'open'
}, next);
}
}
], function(err) {
if (err) {

Loading…
Cancel
Save