mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
upgraded categories to sorted set, score is the order set from acp, check if category topic exists before posting
This commit is contained in:
@@ -25,7 +25,7 @@ SocketPosts.reply = function(socket, data, callback) {
|
||||
return callback(new Error('not-logged-in'));
|
||||
}
|
||||
|
||||
if(!data || !data.topic_id || !data.content) {
|
||||
if(!data || !data.tid || !data.content) {
|
||||
return callback(new Error('invalid data'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user