mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
closes #1725
removed move button from main post, disable moving main post, fixed moving posts.
This commit is contained in:
@@ -62,7 +62,7 @@ SocketModules.composer.push = function(socket, pid, callback) {
|
||||
topics.getTopicTags(postData.tid, next);
|
||||
},
|
||||
isMain: function(next) {
|
||||
postTools.isMain(pid, postData.tid, next);
|
||||
posts.isMain(pid, next);
|
||||
}
|
||||
}, function(err, results) {
|
||||
if(err) {
|
||||
@@ -82,15 +82,9 @@ SocketModules.composer.push = function(socket, pid, callback) {
|
||||
};
|
||||
|
||||
SocketModules.composer.editCheck = function(socket, pid, callback) {
|
||||
posts.getPostField(pid, 'tid', function(err, tid) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
postTools.isMain(pid, tid, function(err, isMain) {
|
||||
callback(err, {
|
||||
titleEditable: isMain
|
||||
});
|
||||
posts.isMain(pid, function(err, isMain) {
|
||||
callback(err, {
|
||||
titleEditable: isMain
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user