mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
changed mongo sets to store just strings, fixes worlds problems
This commit is contained in:
@@ -30,7 +30,12 @@
|
||||
Feed.updateTopic = function (tid, callback) {
|
||||
topics.getTopicWithPosts(tid, 0, 0, -1, function (err, topicData) {
|
||||
if (err) {
|
||||
return callback(new Error('topic-invalid'));
|
||||
if(callback) {
|
||||
return callback(new Error('topic-invalid'));
|
||||
} else {
|
||||
winston.error(err.message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var feed = new rss({
|
||||
|
||||
Reference in New Issue
Block a user