@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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),
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user