From 238d6602a2086f009a397ca0e0ea8caa3d1e0f48 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 23 Jul 2014 09:40:07 -0400 Subject: [PATCH] check for valid content, #1884 --- src/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {