mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
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.
This commit is contained in:
@ -1694,9 +1694,9 @@ async def _gen_rss_feed(
|
|||||||
|
|
||||||
fe = fg.add_entry()
|
fe = fg.add_entry()
|
||||||
fe.id(outbox_object.url)
|
fe.id(outbox_object.url)
|
||||||
|
if outbox_object.name is not None:
|
||||||
# Atom feeds require a title
|
fe.title(outbox_object.name)
|
||||||
if not is_rss:
|
elif not is_rss: # Atom feeds require a title
|
||||||
fe.title(outbox_object.url)
|
fe.title(outbox_object.url)
|
||||||
|
|
||||||
fe.link(href=outbox_object.url)
|
fe.link(href=outbox_object.url)
|
||||||
|
Reference in New Issue
Block a user