Fix meta might be null issue
This commit is contained in:
@@ -208,7 +208,8 @@ module.exports = function (sequelize, DataTypes) {
|
||||
} catch (err) {
|
||||
//na
|
||||
}
|
||||
if (meta && meta.title && (typeof meta.title == "string" || typeof meta.title == "number")) {
|
||||
if (!meta) meta = {};
|
||||
if (meta.title && (typeof meta.title == "string" || typeof meta.title == "number")) {
|
||||
title = meta.title;
|
||||
} else {
|
||||
var $ = cheerio.load(md.render(body));
|
||||
|
||||
Reference in New Issue
Block a user