upgraded categories to sorted set, score is the order set from acp, check if category topic exists before posting

This commit is contained in:
Baris Soner Usakli
2014-02-22 18:56:37 -05:00
parent d6d9776cde
commit 6e5a6b8784
9 changed files with 129 additions and 56 deletions

View File

@@ -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'));
}