pl-api: fix docs

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-27 01:24:33 +01:00
parent bf472078af
commit e3849d2aea

View File

@ -356,7 +356,7 @@ const statuses = (client: PlApiBaseClient) => ({
/**
* Edit a status
* Edit a given status to change its text, sensitivity, media attachments, or poll. Note that editing a polls options will reset the votes.
* @see {@link https://docs.joinmastodon.org/methods/statuses/#unpin}
* @see {@link https://docs.joinmastodon.org/methods/statuses/#edit}
*/
editStatus: async (statusId: string, params: EditStatusParams) => {
type ExtendedEditStatusParams = EditStatusParams & {
@ -374,7 +374,7 @@ const statuses = (client: PlApiBaseClient) => ({
const response = await client.request(`/api/v1/statuses/${statusId}`, {
method: 'PUT',
body: params,
body: fixedParams,
});
return v.parse(statusSchema, response.json);