This commit is contained in:
barisusakli
2015-01-13 14:54:13 -05:00
parent f6525a13c8
commit 6ccdf187ea
17 changed files with 196 additions and 132 deletions

View File

@@ -26,6 +26,10 @@ var async = require('async'),
require('./topics/tags')(Topics);
require('./topics/teaser')(Topics);
Topics.exists = function(tid, callback) {
db.isSortedSetMember('topics:tid', tid, callback);
};
Topics.getTopicData = function(tid, callback) {
db.getObject('topic:' + tid, function(err, topic) {
if (err || !topic) {