pl-api: fix tags featuring

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-11 21:49:46 +01:00
parent 3b2b3057ed
commit 1c5dcd68ed

View File

@ -166,7 +166,7 @@ const myAccount = (client: PlApiBaseClient & { accounts: ReturnType<typeof accou
body: { name },
});
return v.parse(filteredArray(featuredTagSchema), response.json);
return v.parse(featuredTagSchema, response.json);
},
/**
@ -176,10 +176,9 @@ const myAccount = (client: PlApiBaseClient & { accounts: ReturnType<typeof accou
* Requires features{@link Features.featuredTags}.
* @see {@link https://docs.joinmastodon.org/methods/featured_tags/#unfeature}
*/
unfeatureTag: async (name: string) => {
const response = await client.request<EmptyObject>('/api/v1/featured_tags', {
unfeatureTag: async (featuredTagId: string) => {
const response = await client.request<EmptyObject>(`/api/v1/featured_tags/${featuredTagId}`, {
method: 'DELETE',
body: { name },
});
return response.json;