From c1692a296d7bfeb33c524e7429436ede6bbace57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Costa?= Date: Mon, 9 Jan 2023 19:07:09 +0100 Subject: [PATCH] Use object name in the RSS feed title if possible Articles have a title stored in the object name. It makes sense to also use this title in the RSS entry. --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index b40e89b..da96bc0 100644 --- a/app/main.py +++ b/app/main.py @@ -1694,9 +1694,9 @@ async def _gen_rss_feed( fe = fg.add_entry() fe.id(outbox_object.url) - - # Atom feeds require a title - if not is_rss: + if outbox_object.name is not None: + fe.title(outbox_object.name) + elif not is_rss: # Atom feeds require a title fe.title(outbox_object.url) fe.link(href=outbox_object.url)