-
Notifications
You must be signed in to change notification settings - Fork 97
Post Type Changes #183
Comments
Repost type has the fragment to a status, but its content points to a photo. Separately, will all existing posts get retrofitted with the new types, or to access posts before 0.3, we'll need to query for both the old and the new types? |
@seanmonstar fixed. We're sorting out what long-term strategies for post upgrades. In the short-term we're still in alpha, so things are changing fast and shouldn't be confused with what will happen when we go from 1.0 to 1.1. We'll probably do some type of post db retrofit to the new types when we convert the servers to v0.3. |
The Repost Type has the following URI:
I imagine this is a typo? |
@simensen fixed, thanks. |
Does an application have to subscribe to all of the fragments it accepts? For example, would you subscribe to "https://tent.io/types/repost/v0" and then get everything that might be a repost type, or would you have to also say you specifically allow reposts of "https://tent.io/types/photo/v0" as well? |
@simensen Not specifying a fragment acts as a wildcard. Specific fragments may also be specified. |
Changed delete posts to be an array of objects, to allow deletion of multiple posts or versions (for example deleting an entire album of photos). |
Post type details have been specified in the docs. Please open new issues or pull requests to discuss further. |
I can use |
@jeena Any URI is a valid fragment for the cursor type. We are using You may use any URI you own as the fragment (e.g. |
Type URI Fragment
Type URIs now require a fragment, which can be used to uniquely identify a subtype while still referencing the same post type.
Post type URIs with a blank fragment must include the trailing octothorpe:
https://tent.io/types/status/v0#
The fragment may be used to indicate a subtype such as a status reply:
https://tent.io/types/status/v0#reply
It can also be used to embed a reference to another type. For example, this is the type for a repost of a status post:
https://tent.io/types/repost/v0#https://tent.io/types/status/v0
Repost Type
https://tent.io/types/repost/v0
Reposts of public posts should include the type of the post being reposted in the type fragment and the
type
field incontent
. Theversion
field may be used in the postcontent
to specify a specific version of a post. Theid
field has been renamed topost
for consistency.Example
Profile Type
The profile type has been removed.
Follower Type
The follower type has been removed.
Following Type
The following type has been removed.
Delete Type
https://tent.io/types/delete/v0#
The content now contains a single
posts
array of objects. The objects contain the memberspost
and optionallyversion
. Ifversion
is set, it indicates that the specified version should be deleted, not every version of the post.Photo Type
https://tent.io/types/photo/v0#
The
albums
andtags
members have been removed. A new member,location
has been added containing a GeoJSON Point.The following variables need to be named and normalized values specified as part of the
exif
object member.Essay Type
https://tent.io/types/essay/v0#
The
tags
member has been removed.Credentials Type
https://tent.io/types/credentials/v0#
The
mac_key_id
is theid
of the post.The
Pragma: no-cache
andCache-Control: no-store
headers must be set when serving this post type.Cursor Type
https://tent.io/types/cursor/v0
One cursor post is created per tracked post type. The fragment of the type URI is used to indicate the type being tracked.
Example:
https://tent.io/types/cursor/v0#https://tent.io/types/status/v0
Tag Type
https://tent.io/types/tag/v0#
Tags have two fields,
name
anddescription
. To tag a post, simply mention the desired tag in the post.The text was updated successfully, but these errors were encountered: