check for valid content, #1884

v1.18.x
barisusakli 11 years ago
parent 8113ed6a4d
commit 238d6602a2

@ -282,7 +282,7 @@ var async = require('async'),
post.category = results.topicCategory.category; post.category = results.topicCategory.category;
post.index = results.index; post.index = results.index;
if (options.stripTags) { if (options.stripTags && results.content) {
var s = S(results.content); var s = S(results.content);
post.content = s.stripTags.apply(s, utils.stripTags).s; post.content = s.stripTags.apply(s, utils.stripTags).s;
} else { } else {

Loading…
Cancel
Save