From e3849d2aea16478b30eaefdeb81e2672ad807567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 27 Feb 2026 01:24:33 +0100 Subject: [PATCH] pl-api: fix docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/client/statuses.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-api/lib/client/statuses.ts b/packages/pl-api/lib/client/statuses.ts index de7786115..313dd5f8b 100644 --- a/packages/pl-api/lib/client/statuses.ts +++ b/packages/pl-api/lib/client/statuses.ts @@ -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 poll’s 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);