|
|
@ -19,7 +19,7 @@ module.exports = function (SocketPosts) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const results = await utils.promiseParallel({
|
|
|
|
const results = await utils.promiseParallel({
|
|
|
|
posts: posts.getPostFields(data.pid, ['deleted', 'bookmarks', 'uid', 'ip']),
|
|
|
|
posts: posts.getPostFields(data.pid, ['deleted', 'bookmarks', 'uid', 'ip', 'flagId']),
|
|
|
|
isAdmin: user.isAdministrator(socket.uid),
|
|
|
|
isAdmin: user.isAdministrator(socket.uid),
|
|
|
|
isGlobalMod: user.isGlobalModerator(socket.uid),
|
|
|
|
isGlobalMod: user.isGlobalModerator(socket.uid),
|
|
|
|
isModerator: user.isModerator(socket.uid, data.cid),
|
|
|
|
isModerator: user.isModerator(socket.uid, data.cid),
|
|
|
|