mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +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.locked = parseInt(topicData.locked, 10) === 1;
|
||||||
topicData.pinned = parseInt(topicData.pinned, 10) === 1;
|
topicData.pinned = parseInt(topicData.pinned, 10) === 1;
|
||||||
|
|
||||||
plugins.fireHook('filter:topic.get', topicData, function(err, topicData) {
|
plugins.fireHook('filter:topic.get', topicData, callback);
|
||||||
callback(null, topicData);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user