~tsileo/microblog.pub-devel

Use object name in the RSS feed title if possible v1 APPLIED

João Costa: 1
 Use object name in the RSS feed title if possible

 1 files changed, 3 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~tsileo/microblog.pub-devel/patches/38079/mbox | git am -3
Learn more about email & git

[PATCH] Use object name in the RSS feed title if possible Export this patch

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)
-- 
2.38.1.windows.1
Hey, that's a good point, I just applied the patch (and sorry for the delay).

Thanks!