mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
check for valid content, #1884
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user