mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 23:41:37 +01:00
7d89d1f186
Port 2c7eed1fa1
to glitch-soc
10 lines
418 B
TypeScript
10 lines
418 B
TypeScript
import { apiRequestPost } from 'flavours/glitch/api';
|
|
import type { Status, StatusVisibility } from 'flavours/glitch/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`);
|