summaryrefslogtreecommitdiff
path: root/lib/web/note/util.js
diff options
context:
space:
mode:
authorErik Michelson2020-07-04 03:37:19 +0200
committerErik Michelson2020-07-04 03:37:19 +0200
commite4214f32a043acf186b91126a7f9e5f5ab1e4b14 (patch)
tree26bfb86118056efbf86e14b438072e798caa9b29 /lib/web/note/util.js
parentee4210a5115e29d02bb1ae8fc6297c2c318eb24b (diff)
Fixed meta parsing of lang-attribute for using it in the published-view
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Diffstat (limited to '')
-rw-r--r--lib/web/note/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/note/util.js b/lib/web/note/util.js
index 128c89cf..f1af1300 100644
--- a/lib/web/note/util.js
+++ b/lib/web/note/util.js
@@ -81,7 +81,7 @@ exports.getPublishData = function (req, res, note, callback) {
const data = {
title: title,
description: meta.description || (markdown ? models.Note.generateDescription(markdown) : null),
- lang: meta.lang || null
+ lang: meta.lang || null,
viewcount: note.viewcount,
createtime: createtime,
updatetime: updatetime,