mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix post tools not showing up for other users on new posts (src/topics/posts.js has this condition already)
This commit is contained in:
@@ -26,7 +26,7 @@ define('forum/topic/posts', [
|
||||
post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
||||
post.display_moderator_tools = post.selfPost || ajaxify.data.privileges.isAdminOrMod;
|
||||
post.display_move_tools = ajaxify.data.privileges.isAdminOrMod;
|
||||
post.display_post_menu = post.selfPost || ajaxify.data.privileges.isAdminOrMod;
|
||||
post.display_post_menu = post.selfPost || ajaxify.data.privileges.isAdminOrMod || !post.deleted;
|
||||
});
|
||||
|
||||
updatePostCounts(data.posts);
|
||||
@@ -262,4 +262,4 @@ define('forum/topic/posts', [
|
||||
|
||||
return Posts;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user