~tsileo/microblog.pub-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

João Costa <jdpc557@gmail.com>
Details
Message ID
<20230109180708.1784-1-jdpc557@gmail.com>
DKIM signature
missing
Download raw message
Patch: +3 -3
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
Details
Message ID
<6fdf49eb-b872-43e4-a08f-62a9389b821b@app.fastmail.com>
In-Reply-To
<20230109180708.1784-1-jdpc557@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hey, that's a good point, I just applied the patch (and sorry for the delay).

Thanks!
Reply to thread Export thread (mbox)