Fix "Mark Status as sensitive" menu item is not working

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-09-17 23:10:46 +02:00
parent 317282f1a2
commit 6c5b30e720
4 changed files with 7 additions and 7 deletions

View File

@ -3418,7 +3418,7 @@ class PlApiClient {
* @see {@link https://docs.pleroma.social/backend/development/API/admin_api/#put-apiv1pleromaadminstatusesid}
*/
updateStatus: async (statusId: string, params: AdminUpdateStatusParams) => {
const response = await this.request(`/api/v1/pleroma/admin/statuses/${statusId}`, { method: 'PUT', params });
const response = await this.request(`/api/v1/pleroma/admin/statuses/${statusId}`, { method: 'PUT', body: params });
return statusSchema.parse(response.json);
},

View File

@ -1,6 +1,6 @@
{
"name": "pl-api",
"version": "0.0.35",
"version": "0.0.36",
"type": "module",
"homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api",
"repository": {

View File

@ -134,7 +134,7 @@
"multiselect-react-dropdown": "^2.0.25",
"object-to-formdata": "^4.5.1",
"path-browserify": "^1.0.1",
"pl-api": "^0.0.35",
"pl-api": "^0.0.36",
"postcss": "^8.4.29",
"process": "^0.11.10",
"punycode": "^2.1.1",

View File

@ -8240,10 +8240,10 @@ pkg-types@^1.0.3:
mlly "^1.2.0"
pathe "^1.1.0"
pl-api@^0.0.35:
version "0.0.35"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.35.tgz#333fbe9ab2e2c1ced45b010c17e0720a89a7d3c5"
integrity sha512-/6kuLZIZxRHrjxDSufvqQVT7GDkYxl6/z0AaXN6l0XAx+0CkYvDOyGaQ7jUv91M2pJixfZWYf+9szMQ6h9Q+hQ==
pl-api@^0.0.36:
version "0.0.36"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.0.36.tgz#ebe51161a213bc50fc67d214b6de0bff0d63f8f7"
integrity sha512-nGGEcDl4Zb/qEinVuCoWIpzMuG+NX/rScbNGUNtXzrJnyTAqtFNEz5qkdzK6WT80JsyOZ4d3MopbwBJAaS7DXA==
dependencies:
blurhash "^2.0.5"
http-link-header "^1.1.3"