mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 11:19:03 +01:00
10 lines
404 B
TypeScript
10 lines
404 B
TypeScript
import { apiRequestPost } from 'mastodon/api';
|
|
import type { Status, StatusVisibility } from 'mastodon/models/status';
|
|
|
|
export const apiReblog = (statusId: string, visibility: StatusVisibility) =>
|
|
apiRequestPost<{ reblog: Status }>(`v1/statuses/${statusId}/reblog`, {
|
|
visibility,
|
|
});
|
|
|
|
export const apiUnreblog = (statusId: string) =>
|
|
apiRequestPost<Status>(`v1/statuses/${statusId}/unreblog`);
|