Again I forgot something and found out about it only after a week. :)

This commit is contained in:
Alexander Andreev 2021-12-13 23:29:08 +04:00
parent 5d832f9d11
commit 70fce7cd08
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
3 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,9 @@ rss(version='2.0')
item item
title= item.title title= item.title
category= item.category category= item.category
guid!= rssLink(protocol, host, item.date, item.category.toLowerCase()) guid!= rssLink(schemahost, item.date, item.category.toLowerCase())
pubDate= item.date pubDate= item.date
link!= rssLink(protocol, host, item.date, item.category.toLowerCase()) link!= rssLink(schemahost, item.date, item.category.toLowerCase())
author!= author author!= author
description description
| <![CDATA[ | <![CDATA[

View File

@ -1,7 +1,7 @@
{ {
"name": "arav-dwelling", "name": "arav-dwelling",
"description": "Arav's dwelling", "description": "Arav's dwelling",
"version": "21.48.0", "version": "21.50.0",
"author": "Alexander \"Arav\" Andreev <me@arav.top> (https://arav.top)", "author": "Alexander \"Arav\" Andreev <me@arav.top> (https://arav.top)",
"license": "GPLv3", "license": "GPLv3",
"homepage": "https://git.arav.top/Arav/Dwelling", "homepage": "https://git.arav.top/Arav/Dwelling",

View File

@ -40,8 +40,8 @@ function getServiceByHost(host, service="") {
} }
} }
function rssLink(proto, host, date, category, timezone="UTC") { function rssLink(schemahost, date, category, timezone="UTC") {
return `${proto}://${host}/mindflow#${category}-${datetime(date, date_formats.id_date, timezone)}`; return `${schemahost}/mindflow#${category}-${datetime(date, date_formats.id_date, timezone)}`;
} }
// This code was taken from https://www.npmjs.com/package/mysql#custom-format // This code was taken from https://www.npmjs.com/package/mysql#custom-format