Expect /api/v1/statuses to return status code 200

This commit is contained in:
silverpill 2023-02-19 19:36:05 +00:00
parent 3a695953d4
commit bb90c890cb
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Use `/api/v1/statuses/{status_id}/thread` API endpoint to load threads. - Use `/api/v1/statuses/{status_id}/thread` API endpoint to load threads.
- Use `<input type="search">` for search bar. - Use `<input type="search">` for search bar.
- Changed custom emoji vertical alignment and size. - Changed custom emoji vertical alignment and size.
- Expect `/api/v1/statuses` to return status code 200.
## [1.13.0] - 2023-02-06 ## [1.13.0] - 2023-02-06

View file

@ -230,7 +230,7 @@ export async function createPost(
authToken, authToken,
}) })
const data = await response.json() const data = await response.json()
if (response.status !== 201) { if (response.status !== 200) {
throw new Error(data.message) throw new Error(data.message)
} }
return data return data