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