-
Notifications
You must be signed in to change notification settings - Fork 59
Representing alternate post types #51
Description
I'm very excited by what I'm seeing in JSONFeed, as it greatly simplifies both the generation of and the consumption of feeds. On my website, I have implemented initial support for JSONFeed:
That said, in my implementation process, I discovered that I would have liked to have a way to express post types like Photos, Likes, Reposts, Bookmarks, Checkins, and other post types that are common in IndieWeb sites that leverage Microformats2, etc.
Currently, I'm doing this using an _indieweb extension in the JSON. Here are a few samples:
For a Checkin:
{
"_indieweb": {
"address": "310 Vista del Mar Ste C, Redondo Beach, CA, United States, 90277",
"lat": 33.818167005599,
"long": -118.38519045213,
"placename": "Riviera Barber Shop",
"type": "checkin"
},
"author": {
"avatar":
"https://cleverdevil.io/file/2fa19f964fb8970faaf20b909c69d6cb/thumb.png",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil"
},
"content_text": "Checked into Riviera Barber Shop",
"date_published": "2017-05-19T18:26:35+00:00",
"id": "https://cleverdevil.io/view/340d808fc59ec35418ca18c66ab0087f",
"title": "Checked into Riviera Barber Shop",
"url": "https://cleverdevil.io/2017/checked-into-riviera-barber-shop-1"
}Here is an example for a "Like" of some content elsewhere on the web:
{
"_indieweb": {
"like-of": "https://twitter.com/cashlock/status/864999780178477056",
"type": "like"
},
"author": {
"avatar": "https://cleverdevil.io/file/2fa19f964fb8970faaf20b909c69d6cb/thumb.png",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil"
},
"content_html": "...",
"date_published": "2017-05-18T00:24:55+00:00",
"external_url": "https://twitter.com/cashlock/status/864999780178477056",
"id": "https://cleverdevil.io/view/34e874491f8b60b1ae8273f3b9bec08f",
"title": "Like: Christian Ashlock on Twitter: \"@cleverdevil https://t.co/RW3ddHzeIG\"",
"url": "https://twitter.com/cashlock/status/864999780178477056"
},I am not sure it makes sense for every different type of post to be represented, but it would be lovely if at least the basics were represented, or if there was an optional guideline or spec for extensions to enable feed readers to be able to represent and differentiate long-form posts, status updates, photos, likes, bookmarks, and reposts.