~tsileo/microblog.pub

c1692a296d7bfeb33c524e7429436ede6bbace57 — João Costa 1 year, 9 months ago ce6f923
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.
1 files changed, 3 insertions(+), 3 deletions(-)

M app/main.py
M app/main.py => app/main.py +3 -3
@@ 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)