mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +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:
@@ -18,15 +18,7 @@ var winston = require('winston'),
|
||||
(function(ThreadTools) {
|
||||
|
||||
ThreadTools.exists = function(tid, callback) {
|
||||
|
||||
db.isSortedSetMember('topics:tid', tid, function(err, ismember) {
|
||||
|
||||
if (err) {
|
||||
callback(false);
|
||||
}
|
||||
|
||||
callback(ismember);
|
||||
});
|
||||
db.isSortedSetMember('topics:tid', tid, callback);
|
||||
}
|
||||
|
||||
ThreadTools.privileges = function(tid, uid, callback) {
|
||||
|
||||
Reference in New Issue
Block a user