feat: allow direct link to flag from post tools, #8531

v1.18.x
Julian Lam 5 years ago
parent 8415d2f014
commit c705e08a76

@ -41,8 +41,10 @@
"bookmark_instructions" : "Click here to return to the last read post in this thread.",
"flag_post": "Flag this post",
"flag_user": "Flag this user",
"flag-post": "Flag this post",
"flag-user": "Flag this user",
"already-flagged": "Already Flagged",
"view-flag-report": "View Flag Report",
"merged_message": "This topic has been merged into <a href=\"%1\">%2</a>",
"deleted_message": "This topic has been deleted. Only users with topic management privileges can see it.",

@ -19,7 +19,7 @@ module.exports = function (SocketPosts) {
}
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),
isGlobalMod: user.isGlobalModerator(socket.uid),
isModerator: user.isModerator(socket.uid, data.cid),

Loading…
Cancel
Save