mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
closes #2595
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user