mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 22:03:24 +02:00
fix related
This commit is contained in:
@@ -330,7 +330,7 @@ module.exports = function(Topics) {
|
||||
var maximumTopics = parseInt(meta.config.maximumRelatedTopics, 10) || 5;
|
||||
|
||||
if (!topicData.tags.length || maximumTopics === 0) {
|
||||
return callback(null, topicData);
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user