diff --git a/homepage/views/rss.pug b/homepage/views/rss.pug index d411e5c..cc652c1 100644 --- a/homepage/views/rss.pug +++ b/homepage/views/rss.pug @@ -11,9 +11,9 @@ rss(version='2.0') item title= item.title category= item.category - guid!= rssLink(protocol, host, item.date, item.category.toLowerCase()) + guid!= rssLink(schemahost, item.date, item.category.toLowerCase()) pubDate= item.date - link!= rssLink(protocol, host, item.date, item.category.toLowerCase()) + link!= rssLink(schemahost, item.date, item.category.toLowerCase()) author!= author description | (https://arav.top)", "license": "GPLv3", "homepage": "https://git.arav.top/Arav/Dwelling", diff --git a/shared/util.js b/shared/util.js index 6d7603b..75c756f 100644 --- a/shared/util.js +++ b/shared/util.js @@ -40,8 +40,8 @@ function getServiceByHost(host, service="") { } } -function rssLink(proto, host, date, category, timezone="UTC") { - return `${proto}://${host}/mindflow#${category}-${datetime(date, date_formats.id_date, timezone)}`; +function rssLink(schemahost, date, category, timezone="UTC") { + return `${schemahost}/mindflow#${category}-${datetime(date, date_formats.id_date, timezone)}`; } // This code was taken from https://www.npmjs.com/package/mysql#custom-format