diff options
author | Jonne Haß <me@jhass.eu> | 2020-01-26 22:17:27 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2020-02-02 20:13:55 +0300 |
commit | fbd0a518291b72e5d7864d8c4c667de5333189ab (patch) | |
tree | 032dbc009d245ba6cf2bdb0538c3f6f2d9b7ae28 /lib/schemas | |
parent | 6bbcb7415bff1bb648ae2e826c6918af19d94d9d (diff) |
API: return current users like, reshare and subcription status in post infos
Diffstat (limited to 'lib/schemas')
-rw-r--r-- | lib/schemas/api_v1.json | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/schemas/api_v1.json b/lib/schemas/api_v1.json index 8271e879e..0f9b02ca3 100644 --- a/lib/schemas/api_v1.json +++ b/lib/schemas/api_v1.json @@ -256,6 +256,16 @@ "required": ["comments", "likes", "reshares"], "additionalProperties": false }, + "own_interaction_state": { + "type": "object", + "properties": { + "liked": { "type": "boolean" }, + "reshared": { "type": "boolean" }, + "subscribed": { "type": "boolean" } + }, + "required": ["liked", "reshared", "subscribed"], + "additionalProperties": false + }, "mentioned_people": { "type": "array", "items": { "$ref": "https://diaspora.software/api/v1/schema.json#/definitions/short_profile" } @@ -306,7 +316,7 @@ "additionalProperties": false } }, - "required": ["guid", "created_at", "title", "body", "public", "nsfw", "author", "interaction_counters", "mentioned_people", "photos"] + "required": ["guid", "created_at", "title", "body", "public", "nsfw", "author", "interaction_counters", "own_interaction_state", "mentioned_people", "photos"] }, "post": { |