News for hackers. Stuff that matters.
Re:Every Mastodon User Has an RSS Feed by Hakkin on Saturday June 24, 2023 @04:26PM (#36462384)
It seems odd to make some distinction between HTML or RSS and a JSON endpoint. If anything, the JSON endpoint is actually more human readable than the HTML or RSS output, you just have an "arbitrary application" that happens to understand HTML and RSS to display it to you. All of them contain the exact same data, just represented in different ways.

For reference, here's the JSON endpoint for the same account as listed in the article: https://mastodon.online/api/v1/accounts/109298336948075673/s...

Firefox has a nice UI for browsing JSON, but Chrome will just give you a text dump. Ironically, Firefox also used to have a nice UI for browsing RSS feeds but they removed it awhile ago.

Re:Every Mastodon User Has an RSS Feed by CuriousSkeptic on Saturday June 24, 2023 @05:39PM (#36462884)
HTML and RSS adds semantic for the HATEOS part of the ReST-ful web. JSON not so much.

Your comment could just as well have said SGML or XML instead of JSON which would make the distinction more obvious.

Re:Every Mastodon User Has an RSS Feed by M2Ys4U on Saturday June 24, 2023 @05:58PM (#36463020)
The underlying ActivityPub endpoints use JSON-LD, which is much more HATEOAS than plain the JSON shown in the link above.

If you send an HTTP request with an header of 'Accept: application/activity+json' you get proper machine-readable data out.

Re:Every Mastodon User Has an RSS Feed by CuriousSkeptic on Saturday June 24, 2023 @06:48PM (#36463343)
Indeed much more applicable then, I stand corrected

Given the context I assumed the regular unspecified internal type of JSON commonly used to back SPAs

Re:Every Mastodon User Has an RSS Feed by fab23 on Saturday June 24, 2023 @05:48PM (#36462941)
In Firefox use the RSSPreview [1] add-on to get the RSS feed rendering back.

[1] https://addons.mozilla.org/en-US/firefox/addon/rsspreview/

Re:Every Mastodon User Has an RSS Feed by superkuh on Saturday June 24, 2023 @10:54PM (#36464766)
I've tried reading the JSON too but typically remember to append .rss to a user profile URL more quickly than I remember or type /api/v1/.../statuses?exclude_replies=true etc (or .json to the profile url if that instance supports that).

Both are vastly inferior and tedious ways requiring me to type a new URL. It is not controverserial to say the primary purpose of a web browser is to display HTML. Most URLs resolve to HTML pages. It's been this way for 30 years. Only in the last 10 has this radical new application view of the web been creating walled gardens on top of the old document model web. And that's mostly for commercial/profit-motive reasons so it's sad to see non-profit motive software cargo culting SPA only dev.

It also means post v3 mastadon is inherently incompatible with indieweb standards like webmention since there is no page to check for URLs.

Re:Every Mastodon User Has an RSS Feed by vram22 on Sunday June 25, 2023 @02:59AM (#36465664)
>Ironically, Firefox also used to have a nice UI for browsing RSS feeds but they removed it awhile ago.

IIRC, (some) browsers used to have a feature that allowed you to browse a web page that had XML content, such as http://a.com/b.xml .

You could expand and collapse nodes. Or maybe I remember it as being for XML, but it was actually for RSS. After all, RSS is an XML format or application - is that the right term?

See the Example section at:

https://en.m.wikipedia.org/wiki/RSS

Haven't checked lately if browsers still do.