pl-api: fix tags featuring
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user