revoltchat / revolt.chat

Revolt landing page.
https://revolt.chat
Mozilla Public License 2.0
63 stars 27 forks source link

bug: RSS Feeds are not properly formatted #29

Open MMachado05 opened 2 months ago

MMachado05 commented 2 months ago

What happened?

I'm incredibly happy that #28 was merged, though it seems like the current implementation has some bugs with formatting:

image

I'm using Thunderbird here, and have never seen this on any of the other RSS feeds I'm subscribed to. Not 100% sure what the cause might be, but it definitely is a bit jarring. 😬

MMachado05 commented 1 month ago

Just as an update, I tried an alternative RSS reader (Newsflash from Flathub) to see if this was a Thunderbird-only issue, but it still looks a little strange. image

DeclanChidlow commented 1 month ago

At first glance, it appears that the feed content is being served as Markdown rather than HTML, which is what most readers expect.

MMachado05 commented 1 month ago

You're totally right; looking at the atom feed directly, it says it's providing an HTML-type summary despite having Markdown internally:

<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://revolt.chat/</id>
    <title>Revolt Chat Blog</title>
    <updated>2024-07-30T18:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://revolt.chat/"/>
    <subtitle>Newsfeed for the Revolt Chat Blog</subtitle>
    <rights>The Revolt Developers</rights>
    <entry>
        <title type="html"><![CDATA[Month in Revolt - July 2024]]></title>
        <id>https://revolt.chat/posts/month-in-revolt-july-2024</id>
        <link href="https://revolt.chat/posts/month-in-revolt-july-2024"/>
        <updated>2024-07-30T18:00:00.000Z</updated>
        <summary type="html"><![CDATA[
It's been a minute but we're back and still technically on time! Since our last post, we decided a better approach would be to change the format to roughly cover the past month rather than confine ourselves to a set period. The blog posts will continue to come out every month but will now be named after the month they come out.

If you missed the last one, [check it out here](/posts/month-in-revolt-may-2024)!

## Web Client

The new web client is inching ever closer to completion.

...

I tried perusing #28 to see if I could figure out where the misnaming occurred, but I'm unfamiliar with typescript and its library ecosystem. I think it might be something in the feed library? Kind of a shot in the dark, though.