mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-01 23:59:03 +01:00
8d6058b40a
Port 10ec421dd4
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
10 lines
422 B
TypeScript
10 lines
422 B
TypeScript
import { apiRequest } from 'flavours/glitch/api';
|
|
import type { Status, StatusVisibility } from 'flavours/glitch/models/status';
|
|
|
|
export const apiReblog = (statusId: string, visibility: StatusVisibility) =>
|
|
apiRequest<{ reblog: Status }>('post', `v1/statuses/${statusId}/reblog`, {
|
|
visibility,
|
|
});
|
|
|
|
export const apiUnreblog = (statusId: string) =>
|
|
apiRequest<Status>('post', `v1/statuses/${statusId}/unreblog`);
|