From 3196311f1516dabfab6eea19c10f439c169d36d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 19 Dec 2017 11:47:13 -0500 Subject: [PATCH] closes #6184 --- src/controllers/category.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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, + }); + } }