mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
send callback directly
This commit is contained in:
@@ -294,9 +294,7 @@ var async = require('async'),
|
||||
topicData.locked = parseInt(topicData.locked, 10) === 1;
|
||||
topicData.pinned = parseInt(topicData.pinned, 10) === 1;
|
||||
|
||||
plugins.fireHook('filter:topic.get', topicData, function(err, topicData) {
|
||||
callback(null, topicData);
|
||||
});
|
||||
plugins.fireHook('filter:topic.get', topicData, callback);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user