mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
Fixes #3852
Added meta data to user profile pages, and also added noEscape option to meta tag input. If set, validator escaping won't be run on that value.
This commit is contained in:
@@ -203,15 +203,18 @@ topicsController.get = function(req, res, callback) {
|
||||
},
|
||||
{
|
||||
property: "og:url",
|
||||
content: nconf.get('url') + '/topic/' + topicData.slug + (req.params.post_index ? ('/' + req.params.post_index) : '')
|
||||
content: nconf.get('url') + '/topic/' + topicData.slug + (req.params.post_index ? ('/' + req.params.post_index) : ''),
|
||||
noEscape: true
|
||||
},
|
||||
{
|
||||
property: 'og:image',
|
||||
content: ogImageUrl
|
||||
content: ogImageUrl,
|
||||
noEscape: true
|
||||
},
|
||||
{
|
||||
property: "og:image:url",
|
||||
content: ogImageUrl
|
||||
content: ogImageUrl,
|
||||
noEscape: true
|
||||
},
|
||||
{
|
||||
property: "article:published_time",
|
||||
|
||||
Reference in New Issue
Block a user