crash fix

This commit is contained in:
barisusakli
2014-08-30 14:42:48 -04:00
parent 87c8cd2fb0
commit 537dea4e4b
3 changed files with 21 additions and 19 deletions

View File

@@ -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);
});
});