microsub icon indicating copy to clipboard operation
microsub copied to clipboard

Standard way of indicating post type

Open njkleiner opened this issue 6 years ago • 1 comments

The Microsub specification currently does not define a standard way of including an item's post type in a timeline response.

From what I can tell, there are currently some server implementations that include post type in their response, like Aperture in the post-type property, but there does not seem to be consensus on how to do this (mainly due to a lack of implementations).

Wouldn't it make sense to make this part of the spec? I would consider this a part of data normalization/transformation which is literally the purpose of a server.

I suggest we use a top-level field like _kind (to match _id, _is_read and _source) as a standard way to indicate post type, post-type seems inappropriate since post type is part of an items metadata and not a MF2/JF2 property.

njkleiner avatar Jan 08 '20 06:01 njkleiner

Good point! I'm in favor of using _kind as well since type would be overloaded. This is going to be implemented in Lighthouse.

(Originally published at: https://jacky.wtf/2022/4/nu/nu5nq7OBzE7j6yE5RHS9unJA)

jalcine avatar Apr 07 '22 20:04 jalcine