mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
crash fix
This commit is contained in:
@@ -61,6 +61,9 @@ module.exports = function(Topics) {
|
||||
return callback(err);
|
||||
}
|
||||
var teasers = topics.map(function(topic, index) {
|
||||
if (!topic) {
|
||||
return null;
|
||||
}
|
||||
if (tidToPost[topic.tid]) {
|
||||
tidToPost[topic.tid].index = counts[index];
|
||||
if (tidToPost[topic.tid].content) {
|
||||
|
||||
Reference in New Issue
Block a user