mirror of
https://github.com/status-im/codimd.git
synced 2025-02-04 13:34:03 +00:00
Fix slide might not provide slideOptions meta
This commit is contained in:
parent
9b16703819
commit
ca95901204
@ -575,7 +575,7 @@ function showPublishSlide (req, res, next) {
|
|||||||
updatetime: updatetime,
|
updatetime: updatetime,
|
||||||
url: origin,
|
url: origin,
|
||||||
body: markdown,
|
body: markdown,
|
||||||
theme: utils.isRevealTheme(meta.slideOptions.theme),
|
theme: meta.slideOptions && utils.isRevealTheme(meta.slideOptions.theme),
|
||||||
meta: JSON.stringify(extracted.meta),
|
meta: JSON.stringify(extracted.meta),
|
||||||
useCDN: config.usecdn,
|
useCDN: config.usecdn,
|
||||||
owner: note.owner ? note.owner.id : null,
|
owner: note.owner ? note.owner.id : null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user