mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Adapt code for eslint-config-standard 17
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
66ab5ab51b
commit
d26dcd04a1
24 changed files with 82 additions and 82 deletions
|
@ -18,8 +18,8 @@ exports.getInfo = function getInfo (req, res, note) {
|
|||
title: meta.title || title,
|
||||
description: meta.description || (markdown ? models.Note.generateDescription(markdown) : null),
|
||||
viewcount: note.viewcount,
|
||||
createtime: createtime,
|
||||
updatetime: updatetime
|
||||
createtime,
|
||||
updatetime
|
||||
}
|
||||
res.set({
|
||||
'Access-Control-Allow-Origin': '*', // allow CORS as API
|
||||
|
|
|
@ -75,8 +75,8 @@ exports.showNote = function (req, res, next) {
|
|||
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
|
||||
})
|
||||
return res.render('hedgedoc.ejs', {
|
||||
title: title,
|
||||
opengraph: opengraph
|
||||
title,
|
||||
opengraph
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -98,12 +98,12 @@ exports.getPublishData = function (req, res, note, callback) {
|
|||
title = models.Note.generateWebTitle(meta.title || title)
|
||||
const ogdata = models.Note.parseOpengraph(meta, title)
|
||||
const data = {
|
||||
title: title,
|
||||
title,
|
||||
description: meta.description || (markdown ? models.Note.generateDescription(markdown) : null),
|
||||
lang: meta.lang || null,
|
||||
viewcount: note.viewcount,
|
||||
createtime: createtime,
|
||||
updatetime: updatetime,
|
||||
createtime,
|
||||
updatetime,
|
||||
body: markdown,
|
||||
theme: meta.slideOptions && isRevealTheme(meta.slideOptions.theme),
|
||||
meta: JSON.stringify(extracted.meta),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue