pl-api: backport changes

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-01-27 15:16:42 +01:00
parent 41ad4086ca
commit d146cb9ffe
3 changed files with 4 additions and 4 deletions

View File

@ -4980,7 +4980,7 @@ class PlApiClient {
* Requires features{@link Features['rssFeedSubscriptions']}. * Requires features{@link Features['rssFeedSubscriptions']}.
*/ */
createRssFeedSubscription: async (url: string) => { createRssFeedSubscription: async (url: string) => {
const response = await this.request('/api/v1/rss_feed_subscriptions', { method: 'POST', body: { url } }); const response = await this.request('/api/v1/pleroma/rss_feed_subscriptions', { method: 'POST', body: { url } });
return v.parse(rssFeedSchema, response.json); return v.parse(rssFeedSchema, response.json);
}, },
@ -4989,7 +4989,7 @@ class PlApiClient {
* Requires features{@link Features['rssFeedSubscriptions']}. * Requires features{@link Features['rssFeedSubscriptions']}.
*/ */
deleteRssFeedSubscription: async (url: string) => { deleteRssFeedSubscription: async (url: string) => {
const response = await this.request<{}>('/api/v1/rss_feed_subscriptions', { method: 'DELETE', body: { url } }); const response = await this.request<{}>('/api/v1/pleroma/rss_feed_subscriptions', { method: 'DELETE', body: { url } });
return response.json; return response.json;
}, },

View File

@ -8,7 +8,7 @@ const rssFeedSchema = v.object({
url: v.string(), url: v.string(),
title: v.fallback(v.nullable(v.string()), null), title: v.fallback(v.nullable(v.string()), null),
description: v.fallback(v.nullable(v.string()), null), description: v.fallback(v.nullable(v.string()), null),
image: v.fallback(v.nullable(v.string()), null), image_url: v.fallback(v.nullable(v.string()), null),
}); });
/** /**

View File

@ -1,6 +1,6 @@
{ {
"name": "pl-api", "name": "pl-api",
"version": "1.0.0-rc.19", "version": "1.0.0-rc.21",
"type": "module", "type": "module",
"homepage": "https://github.com/mkljczk/pl-fe/tree/develop/packages/pl-api", "homepage": "https://github.com/mkljczk/pl-fe/tree/develop/packages/pl-api",
"repository": { "repository": {