mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
remove fallbacks
This commit is contained in:
@@ -24,7 +24,7 @@ categoriesController.list = function (req, res, next) {
|
|||||||
if (meta.config.description) {
|
if (meta.config.description) {
|
||||||
res.locals.metaTags.push({
|
res.locals.metaTags.push({
|
||||||
name: 'description',
|
name: 'description',
|
||||||
content: String(meta.config.description || ''),
|
content: String(meta.config.description),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ module.exports = function (Meta) {
|
|||||||
if (!hasDescription && Meta.config.description) {
|
if (!hasDescription && Meta.config.description) {
|
||||||
meta.push({
|
meta.push({
|
||||||
name: 'description',
|
name: 'description',
|
||||||
content: validator.escape(String(Meta.config.description || '')),
|
content: validator.escape(String(Meta.config.description)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user