Node.js based forum software built for the modern web
closes #4204
barisusakli34f68a029ae5
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.jsindex 43aebcfe73..ba8c77598e 100644--- a/public/src/client/topic/events.js+++ b/public/src/client/topic/events.js@@ -182,6 +182,7 @@ define('forum/topic/events', [postTools.toggle(data.pid, isDeleted);if (!app.user.isAdmin && parseInt(data.uid, 10) !== parseInt(app.user.uid, 10)) {+ postEl.find('[component="post/tools"]').toggleClass('hidden', isDeleted);if (isDeleted) {postEl.find('[component="post/content"]').translateHtml('[[topic:post_is_deleted]]');} else {diff --git a/src/topics/posts.js b/src/topics/posts.jsindex f40b0a5e0a..85f2979513 100644--- a/src/topics/posts.js+++ b/src/topics/posts.js@@ -143,6 +143,7 @@ module.exports = function(Topics) {if (post) {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;if (post.deleted && !(topicPrivileges.isAdminOrMod || post.selfPost)) {post.content = '[[topic:post_is_deleted]]';}