mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 10:48:19 +01:00
8dbc1b0503
* chore(package): update standard to version 12.0.0 * package lock update * fix eslint
13 lines
536 B
JavaScript
13 lines
536 B
JavaScript
import { post, WRITE_TIMEOUT } from '../_utils/ajax'
|
|
import { auth, basename } from './utils'
|
|
|
|
export async function pinStatus (instanceName, accessToken, statusId) {
|
|
let url = `${basename(instanceName)}/api/v1/statuses/${statusId}/pin`
|
|
return post(url, null, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
|
}
|
|
|
|
export async function unpinStatus (instanceName, accessToken, statusId) {
|
|
let url = `${basename(instanceName)}/api/v1/statuses/${statusId}/unpin`
|
|
return post(url, null, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
|
}
|