mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
calololback
(how the hell was this working?)
This commit is contained in:
@@ -302,7 +302,7 @@ var async = require('async'),
|
|||||||
|
|
||||||
Topics.getMainPost = function(tid, uid, callback) {
|
Topics.getMainPost = function(tid, uid, callback) {
|
||||||
Topics.getMainPosts([tid], uid, function(err, mainPosts) {
|
Topics.getMainPosts([tid], uid, function(err, mainPosts) {
|
||||||
calllback(err, Array.isArray(mainPosts) && mainPosts.length ? mainPosts[0] : null);
|
callback(err, Array.isArray(mainPosts) && mainPosts.length ? mainPosts[0] : null);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user