|
|
@ -144,6 +144,8 @@ module.exports = function(Topics) {
|
|
|
|
post.display_moderator_tools = topicPrivileges.isAdminOrMod || post.selfPost;
|
|
|
|
post.display_moderator_tools = topicPrivileges.isAdminOrMod || post.selfPost;
|
|
|
|
post.display_move_tools = topicPrivileges.isAdminOrMod && post.index !== 0;
|
|
|
|
post.display_move_tools = topicPrivileges.isAdminOrMod && post.index !== 0;
|
|
|
|
post.display_post_menu = topicPrivileges.isAdminOrMod || post.selfPost || !post.deleted;
|
|
|
|
post.display_post_menu = topicPrivileges.isAdminOrMod || post.selfPost || !post.deleted;
|
|
|
|
|
|
|
|
post.ip = topicPrivileges.isAdminOrMod ? post.ip : undefined;
|
|
|
|
|
|
|
|
|
|
|
|
if (post.deleted && !(topicPrivileges.isAdminOrMod || post.selfPost)) {
|
|
|
|
if (post.deleted && !(topicPrivileges.isAdminOrMod || post.selfPost)) {
|
|
|
|
post.content = '[[topic:post_is_deleted]]';
|
|
|
|
post.content = '[[topic:post_is_deleted]]';
|
|
|
|
}
|
|
|
|
}
|
|
|
|