summaryrefslogtreecommitdiff
path: root/lib/models
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/models
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 'lib/models')
-rw-r--r--lib/models/note.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/models/note.js b/lib/models/note.js
index 141402ac..edc79639 100644
--- a/lib/models/note.js
+++ b/lib/models/note.js
@@ -406,6 +406,7 @@ module.exports = function (sequelize, DataTypes) {
if (meta.title && (typeof meta.title === 'string' || typeof meta.title === 'number')) { _meta.title = meta.title }
if (meta.description && (typeof meta.description === 'string' || typeof meta.description === 'number')) { _meta.description = meta.description }
if (meta.robots && (typeof meta.robots === 'string' || typeof meta.robots === 'number')) { _meta.robots = meta.robots }
+ if (meta.lang && (typeof meta.lang === 'string')) { _meta.lang = meta.lang }
if (meta.GA && (typeof meta.GA === 'string' || typeof meta.GA === 'number')) { _meta.GA = meta.GA }
if (meta.disqus && (typeof meta.disqus === 'string' || typeof meta.disqus === 'number')) { _meta.disqus = meta.disqus }
if (meta.slideOptions && (typeof meta.slideOptions === 'object')) { _meta.slideOptions = meta.slideOptions }