mirror of
https://github.com/funamitech/mastodon
synced 2024-12-05 10:18:45 +09:00
7d89d1f186
Port 2c7eed1fa1
to glitch-soc
11 lines
418 B
TypeScript
11 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`);
|