diff options
author | David Mehren | 2020-07-10 12:01:33 +0200 |
---|---|---|
committer | GitHub | 2020-07-10 12:01:33 +0200 |
commit | 88b292fbe00216cb0bd2b92d919898f703b7e307 (patch) | |
tree | 2a2bdf903de2c1eec30ff5d61d0d677a3efdcb38 /lib/web/note | |
parent | 5b8d948c8cb30071aada0e4ba7d12ab1acfa3776 (diff) | |
parent | e4214f32a043acf186b91126a7f9e5f5ab1e4b14 (diff) |
Merge pull request #437 from codimd/enhancement/lang-attr-published
Diffstat (limited to 'lib/web/note')
-rw-r--r-- | lib/web/note/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/web/note/util.js b/lib/web/note/util.js index c5affd05..f1af1300 100644 --- a/lib/web/note/util.js +++ b/lib/web/note/util.js @@ -81,6 +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, viewcount: note.viewcount, createtime: createtime, updatetime: updatetime, |