Expect /api/v1/statuses to return status code 200
This commit is contained in:
parent
3a695953d4
commit
bb90c890cb
2 changed files with 2 additions and 1 deletions
|
@ -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 `<input type="search">` for search bar.
|
||||
- Changed custom emoji vertical alignment and size.
|
||||
- Expect `/api/v1/statuses` to return status code 200.
|
||||
|
||||
## [1.13.0] - 2023-02-06
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ export async function createPost(
|
|||
authToken,
|
||||
})
|
||||
const data = await response.json()
|
||||
if (response.status !== 201) {
|
||||
if (response.status !== 200) {
|
||||
throw new Error(data.message)
|
||||
}
|
||||
return data
|
||||
|
|
Loading…
Reference in a new issue