Open mossymossmoss opened 2 years ago
For now, use the json..
.../api/v1/timelines/public?local=true&only_media=false
Yeah, using the Mastodon API directly to display timeline content is probably the best way to go if you want to display in a chat app. RSS feeds were meant to be consumed by RSS Readers. But adding more RSS support in https://github.com/mastodon/mastodon/issues/21500 would be great!
Example:
curl -s https://social.overheid.nl/api/v1/timelines/public?local=true | \
jq "reverse | .[] | select(.created_at|contains(\"$(date +%Y-%m-%dT)\")) | [.created_at,.content]" | \
elinks -dump -force-html -no-numbering -no-references
Pitch
Add the ability to get an RSS feed of all public posts on a specific instance
Motivation
Useful to have new posts linked to on a Discord/Matrix channel with the use of a bot