From c10ec6b81019682e13c6d4a22036490ff2eea6c2 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 8 Mar 2016 19:06:59 +0200 Subject: [PATCH] closes #4326 --- src/topics/posts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/topics/posts.js b/src/topics/posts.js index 85f2979513..8177e93ebd 100644 --- a/src/topics/posts.js +++ b/src/topics/posts.js @@ -144,6 +144,8 @@ module.exports = function(Topics) { post.display_moderator_tools = topicPrivileges.isAdminOrMod || post.selfPost; post.display_move_tools = topicPrivileges.isAdminOrMod && post.index !== 0; post.display_post_menu = topicPrivileges.isAdminOrMod || post.selfPost || !post.deleted; + post.ip = topicPrivileges.isAdminOrMod ? post.ip : undefined; + if (post.deleted && !(topicPrivileges.isAdminOrMod || post.selfPost)) { post.content = '[[topic:post_is_deleted]]'; }