From ca959012047bef3c0b2dd6f2974a8373a6615125 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 5 Jun 2017 01:12:40 +0800 Subject: Fix slide might not provide slideOptions meta --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index cda484e7..a22d1e70 100755 --- a/lib/response.js +++ b/lib/response.js @@ -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, -- cgit v1.2.3