From 70fce7cd08380ea5353dcced5515c9981c9800d6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Dec 2021 23:29:08 +0400 Subject: [PATCH] Again I forgot something and found out about it only after a week. :) --- homepage/views/rss.pug | 4 ++-- package.json | 2 +- shared/util.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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