mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
refactor abit adding error checking to missing parts
This commit is contained in:
@@ -688,7 +688,7 @@ module.exports.init = function(io) {
|
||||
socket.on('api:composer.push', function(data) {
|
||||
if (uid > 0 || meta.config.allowGuestPosting === '1') {
|
||||
if (parseInt(data.tid) > 0) {
|
||||
topics.getTopicData(data.tid, function(topicData) {
|
||||
topics.getTopicData(data.tid, function(err, topicData) {
|
||||
if (data.body)
|
||||
topicData.body = data.body;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user