diff options
author | butlerx | 2017-06-01 09:47:52 +0100 |
---|---|---|
committer | butlerx | 2017-06-01 10:12:40 +0100 |
commit | c531d96f6617663dae8534aba2623f541c7d12de (patch) | |
tree | 751d75bedfcde0a0aee6ee1d7ec17e7cc76c2dc1 /lib/response.js | |
parent | e5834c077f203aa5c80f777f91e0bf650614241d (diff) |
check if reveal theme exists
Diffstat (limited to 'lib/response.js')
-rwxr-xr-x | lib/response.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index fec6c561..cda484e7 100755 --- a/lib/response.js +++ b/lib/response.js @@ -13,6 +13,7 @@ var moment = require('moment') var config = require('./config') var logger = require('./logger') var models = require('./models') +var utils = require('./utils') // public var response = { @@ -574,7 +575,7 @@ function showPublishSlide (req, res, next) { updatetime: updatetime, url: origin, body: markdown, - theme: meta.slideOptions.theme, + theme: utils.isRevealTheme(meta.slideOptions.theme), meta: JSON.stringify(extracted.meta), useCDN: config.usecdn, owner: note.owner ? note.owner.id : null, |