mirror of
https://github.com/funamitech/mastodon
synced 2024-12-12 13:48:35 +09:00
parent
85e6efd351
commit
7d89d1f186
@ -3,7 +3,5 @@ import type { ApiRelationshipJSON } from 'flavours/glitch/api_types/relationship
|
||||
|
||||
export const apiSubmitAccountNote = (id: string, value: string) =>
|
||||
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
||||
data: {
|
||||
comment: value,
|
||||
},
|
||||
comment: value,
|
||||
});
|
||||
|
@ -3,9 +3,7 @@ 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,
|
||||
},
|
||||
visibility,
|
||||
});
|
||||
|
||||
export const apiUnreblog = (statusId: string) =>
|
||||
|
@ -6,7 +6,4 @@ export const apiGetNotificationPolicy = () =>
|
||||
|
||||
export const apiUpdateNotificationsPolicy = (
|
||||
policy: Partial<NotificationPolicyJSON>,
|
||||
) =>
|
||||
apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', {
|
||||
data: policy,
|
||||
});
|
||||
) => apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', policy);
|
||||
|
Loading…
Reference in New Issue
Block a user