mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #4758
This commit is contained in:
@@ -24,6 +24,7 @@ define('forum/topic/posts', [
|
||||
}
|
||||
|
||||
data.loggedIn = app.user.uid ? true : false;
|
||||
data.privileges = ajaxify.data.privileges;
|
||||
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.privileges.isAdminOrMod;
|
||||
|
||||
@@ -38,9 +38,6 @@ SocketPosts.reply = function(socket, data, callback) {
|
||||
|
||||
var result = {
|
||||
posts: [postData],
|
||||
privileges: {
|
||||
'topics:reply': true
|
||||
},
|
||||
'reputation:disabled': parseInt(meta.config['reputation:disabled'], 10) === 1,
|
||||
'downvote:disabled': parseInt(meta.config['downvote:disabled'], 10) === 1,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user