diff --git a/src/posts.js b/src/posts.js index fb7f57597b..15f6b7dbf8 100644 --- a/src/posts.js +++ b/src/posts.js @@ -282,7 +282,7 @@ var async = require('async'), post.category = results.topicCategory.category; post.index = results.index; - if (options.stripTags) { + if (options.stripTags && results.content) { var s = S(results.content); post.content = s.stripTags.apply(s, utils.stripTags).s; } else {