mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix for post menu display on newPost
This commit is contained in:
@@ -24,8 +24,9 @@ define('forum/topic/posts', [
|
||||
data.loggedIn = app.user.uid ? true : false;
|
||||
data.posts.forEach(function(post) {
|
||||
post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
||||
post.display_moderator_tools = post.selfPost || ajaxify.data.isAdminOrMod;
|
||||
post.display_move_tools = ajaxify.data.isAdminOrMod;
|
||||
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;
|
||||
});
|
||||
|
||||
updatePostCounts(data.posts);
|
||||
|
||||
Reference in New Issue
Block a user