mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-15 11:48:35 +01:00
8 lines
289 B
JavaScript
8 lines
289 B
JavaScript
|
import { auth, basename } from './utils'
|
||
|
import { deleteWithTimeout } from '../_utils/ajax'
|
||
|
|
||
|
export async function deleteStatus (instanceName, accessToken, statusId) {
|
||
|
let url = `${basename(instanceName)}/api/v1/statuses/${statusId}`
|
||
|
return deleteWithTimeout(url, auth(accessToken))
|
||
|
}
|