mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
fixing issue with md parser
This commit is contained in:
@@ -146,7 +146,7 @@ var RDB = require('./redis.js'),
|
||||
breaks: true
|
||||
});
|
||||
|
||||
if (md.length > 0) {
|
||||
if (md && md.length > 0) {
|
||||
var parsedContentDOM = cheerio.load(marked(md));
|
||||
var domain = global.nconf.get('url');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user