mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 05:52:05 +02:00
crash fix
This commit is contained in:
@@ -152,7 +152,7 @@ var async = require('async'),
|
||||
if (!data || !Array.isArray(data.posts)) {
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
data.posts = data.posts.filter(Boolean);
|
||||
callback(null, data.posts);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user