diff options
author | rinpatch <rinpatch@sdf.org> | 2020-01-22 14:11:01 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-01-22 14:11:01 +0000 |
commit | 34aa0c542bd0d2e84829146d26bc573320d54a4f (patch) | |
tree | f4031dc749d9232869fa3575032b795736881cb3 /docs/API/pleroma_api.md | |
parent | 71bffbf0b7a3f0e245408a977c48a51763021508 (diff) | |
parent | 043cd5aa5458bb5b2ae0b44e475db59c195bec24 (diff) | |
download | pleroma-34aa0c542bd0d2e84829146d26bc573320d54a4f.tar.gz pleroma-34aa0c542bd0d2e84829146d26bc573320d54a4f.zip |
Merge branch 'emoji-reaction-extensions-2' into 'develop'
Emoji Reactions: In the API, sort them by first emoji insertion date
See merge request pleroma/pleroma!2126
Diffstat (limited to 'docs/API/pleroma_api.md')
-rw-r--r-- | docs/API/pleroma_api.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/API/pleroma_api.md b/docs/API/pleroma_api.md index 689edbcc2..9ca8a5af0 100644 --- a/docs/API/pleroma_api.md +++ b/docs/API/pleroma_api.md @@ -451,11 +451,11 @@ Emoji reactions work a lot like favourites do. They make it possible to react to * Method: `GET` * Authentication: optional * Params: None -* Response: JSON, a map of emoji to account list mappings. +* Response: JSON, a list of emoji/account list tuples, sorted by emoji insertion date, in ascending order, e.g, the first emoji in the list is the oldest. * Example Response: ```json -{ - "😀" => [{"id" => "xyz.."...}, {"id" => "zyx..."}], - "🗡" => [{"id" => "abc..."}] -} +[ + ["😀", [{"id" => "xyz.."...}, {"id" => "zyx..."}]], + ["☕", [{"id" => "abc..."}]] +] ``` |