Переглянути джерело

Emoji Reactions: Add documentation

rate-limiter-compile-time-and-runtime-settings-mix-with-increased-complexity
lain 4 роки тому
джерело
коміт
3af6d3f8e2
2 змінених файлів з 14 додано та 0 видалено
  1. +1
    -0
      CHANGELOG.md
  2. +13
    -0
      docs/API/pleroma_api.md

+ 1
- 0
CHANGELOG.md Переглянути файл

@@ -114,6 +114,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Configuration: `feed.logo` option for tag feed.
- Tag feed: `/tags/:tag.rss` - list public statuses by hashtag.
- Mastodon API: Add `reacted` property to `emoji_reactions`
- Pleroma API: Add reactions for a single emoji.
</details>

### Fixed


+ 13
- 0
docs/API/pleroma_api.md Переглянути файл

@@ -459,3 +459,16 @@ Emoji reactions work a lot like favourites do. They make it possible to react to
{"name": "☕", "count": 1, "me": false, "accounts": [{"id" => "abc..."}]}
]
```

## `GET /api/v1/pleroma/statuses/:id/reactions/:emoji`
### Get an object of emoji to account mappings with accounts that reacted to the post for a specific emoji`
* Method: `GET`
* Authentication: optional
* Params: None
* Response: JSON, a list of emoji/account list tuples
* Example Response:
```json
[
{"name": "😀", "count": 2, "me": true, "accounts": [{"id" => "xyz.."...}, {"id" => "zyx..."}]}
]
```

Завантаження…
Відмінити
Зберегти