Skip to content

Node.js based forum software built for the modern web

closes #6184

Barış Soner Uşaklı3196311f1516
diff --git a/src/controllers/category.js b/src/controllers/category.js
index f231349a49..89f924e479 100644
--- a/src/controllers/category.js
+++ b/src/controllers/category.js
@@ -199,14 +199,17 @@ function addTags(categoryData, res) {
}
res.locals.linkTags = [
- {
- rel: 'alternate',
- type: 'application/rss+xml',
- href: categoryData.rssFeedUrl,
- },
{
rel: 'up',
href: nconf.get('url'),
},
];
+
+ if (!categoryData['feeds:disableRSS']) {
+ res.locals.linkTags.push({
+ rel: 'alternate',
+ type: 'application/rss+xml',
+ href: categoryData.rssFeedUrl,
+ });
+ }
}