Display delete status errors

This commit is contained in:
tusooa 2023-01-20 12:33:19 -05:00
commit d1876503bc
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 16 additions and 4 deletions

View file

@ -923,8 +923,9 @@ const editStatus = ({
}
const deleteStatus = ({ id, credentials }) => {
return fetch(MASTODON_DELETE_URL(id), {
headers: authHeaders(credentials),
return promisedRequest({
url: MASTODON_DELETE_URL(id),
credentials,
method: 'DELETE'
})
}