Adapt code for eslint-config-standard 17

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-05-01 21:14:27 +02:00
parent 66ab5ab51b
commit d26dcd04a1
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
24 changed files with 82 additions and 82 deletions

View file

@ -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),