mirror of
https://github.com/funamitech/mastodon
synced 2024-12-14 22:59:46 +09:00
3a20290915
Port 547e97945d
13 lines
439 B
TypeScript
13 lines
439 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`, {
|
|
data: {
|
|
visibility,
|
|
},
|
|
});
|
|
|
|
export const apiUnreblog = (statusId: string) =>
|
|
apiRequestPost<Status>(`v1/statuses/${statusId}/unreblog`);
|