update @ Thu Dec 26 04:37:36 EET 2024

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Arija A. 2024-12-26 04:37:36 +02:00
parent c49db3bc8e
commit a88de4e345
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2

View file

@ -1586,13 +1586,13 @@ def rss(config: dict[str, typing.Any]) -> int:
f" [edited at {datetime.datetime.utcfromtimestamp(created).strftime(ftime)}]" f" [edited at {datetime.datetime.utcfromtimestamp(created).strftime(ftime)}]"
if created if created
else "" else ""
) + f"\n\nRead about it at {link}" ) + f" - read about it at {link} :)"
etree.SubElement(item, "pubDate").text = datetime.datetime.utcfromtimestamp( etree.SubElement(item, "pubDate").text = datetime.datetime.utcfromtimestamp(
post["created"], post["created"],
).strftime(ftime) ).strftime(ftime)
etree.SubElement(item, "guid").text = link etree.SubElement(item, "guid").text = link
etree.SubElement(item, "author").text = ( etree.SubElement(item, "author").text = (
f"{config['email']} ({config['author']})" f"{config['author']} <{config['email']}>"
) )
etree.ElementTree(root).write( etree.ElementTree(root).write(