mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
crash fix
This commit is contained in:
@@ -414,7 +414,11 @@ var db = require('./database'),
|
|||||||
Categories.onNewPostMade = function(postData) {
|
Categories.onNewPostMade = function(postData) {
|
||||||
topics.getTopicFields(postData.tid, ['cid', 'pinned'], function(err, topicData) {
|
topics.getTopicFields(postData.tid, ['cid', 'pinned'], function(err, topicData) {
|
||||||
if (err) {
|
if (err) {
|
||||||
winston.error(err.message);
|
return winston.error(err.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!topicData) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var cid = topicData.cid;
|
var cid = topicData.cid;
|
||||||
|
|||||||
Reference in New Issue
Block a user