Fix slide might not provide slideOptions meta

This commit is contained in:
Wu Cheng-Han 2017-06-05 01:12:40 +08:00
parent 9b16703819
commit ca95901204

View file

@ -575,7 +575,7 @@ function showPublishSlide (req, res, next) {
updatetime: updatetime,
url: origin,
body: markdown,
theme: utils.isRevealTheme(meta.slideOptions.theme),
theme: meta.slideOptions && utils.isRevealTheme(meta.slideOptions.theme),
meta: JSON.stringify(extracted.meta),
useCDN: config.usecdn,
owner: note.owner ? note.owner.id : null,