mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-29 18:59:58 +01:00
closes #1442
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
helpers.buildMetaTag = function(tag) {
|
||||
var name = tag.name ? 'name="' + tag.name + '" ' : '',
|
||||
property = tag.property ? 'property="' + tag.property + '" ' : '',
|
||||
content = tag.content ? 'content="' + tag.content + '" ' : '';
|
||||
content = tag.content ? 'content="' + tag.content.replace(/\n/g, ' ') + '" ' : '';
|
||||
|
||||
return '<meta ' + name + property + content + ' />';
|
||||
};
|
||||
|
||||
@@ -82,6 +82,8 @@ topicsController.get = function(req, res, next) {
|
||||
ogImageUrl = nconf.get('url') + ogImageUrl;
|
||||
}
|
||||
|
||||
description = description.replace(/\n/g, ' ');
|
||||
|
||||
res.locals.metaTags = [
|
||||
{
|
||||
name: "title",
|
||||
|
||||
Reference in New Issue
Block a user