mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #6184
This commit is contained in:
@@ -199,14 +199,17 @@ function addTags(categoryData, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.locals.linkTags = [
|
res.locals.linkTags = [
|
||||||
{
|
|
||||||
rel: 'alternate',
|
|
||||||
type: 'application/rss+xml',
|
|
||||||
href: categoryData.rssFeedUrl,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
rel: 'up',
|
rel: 'up',
|
||||||
href: nconf.get('url'),
|
href: nconf.get('url'),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (!categoryData['feeds:disableRSS']) {
|
||||||
|
res.locals.linkTags.push({
|
||||||
|
rel: 'alternate',
|
||||||
|
type: 'application/rss+xml',
|
||||||
|
href: categoryData.rssFeedUrl,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user