Merge commit '2c7eed1fa1e7af72dd03a041a60f2cfd42e913e0' into glitch-soc/merge-upstream
This commit is contained in:
commit
85e6efd351
|
@ -3,7 +3,5 @@ import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships';
|
||||||
|
|
||||||
export const apiSubmitAccountNote = (id: string, value: string) =>
|
export const apiSubmitAccountNote = (id: string, value: string) =>
|
||||||
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
||||||
data: {
|
comment: value,
|
||||||
comment: value,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,9 +3,7 @@ import type { Status, StatusVisibility } from 'mastodon/models/status';
|
||||||
|
|
||||||
export const apiReblog = (statusId: string, visibility: StatusVisibility) =>
|
export const apiReblog = (statusId: string, visibility: StatusVisibility) =>
|
||||||
apiRequestPost<{ reblog: Status }>(`v1/statuses/${statusId}/reblog`, {
|
apiRequestPost<{ reblog: Status }>(`v1/statuses/${statusId}/reblog`, {
|
||||||
data: {
|
visibility,
|
||||||
visibility,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const apiUnreblog = (statusId: string) =>
|
export const apiUnreblog = (statusId: string) =>
|
||||||
|
|
|
@ -6,7 +6,4 @@ export const apiGetNotificationPolicy = () =>
|
||||||
|
|
||||||
export const apiUpdateNotificationsPolicy = (
|
export const apiUpdateNotificationsPolicy = (
|
||||||
policy: Partial<NotificationPolicyJSON>,
|
policy: Partial<NotificationPolicyJSON>,
|
||||||
) =>
|
) => apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', policy);
|
||||||
apiRequestPut<NotificationPolicyJSON>('/v1/notifications/policy', {
|
|
||||||
data: policy,
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue