From 9bac37b59ffaac000f674463d95048e04e821681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 29 May 2024 13:14:50 +0200 Subject: [PATCH] wtf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/actions/interactions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/interactions.ts b/src/actions/interactions.ts index 4b5674536e..8b46aff053 100644 --- a/src/actions/interactions.ts +++ b/src/actions/interactions.ts @@ -348,7 +348,7 @@ const unbookmark = (status: StatusEntity) => (dispatch: AppDispatch, getState: () => RootState) => { dispatch(unbookmarkRequest(status)); - api(getState)(`/api/v1/statuses/${status.id}/unbookmark`, { method: 'JSON' }).then(response => { + api(getState)(`/api/v1/statuses/${status.id}/unbookmark`, { method: 'POST' }).then(response => { dispatch(importFetchedStatus(response.json)); dispatch(unbookmarkSuccess(status, response.json)); toast.success(messages.bookmarkRemoved); @@ -585,7 +585,7 @@ const pin = (status: StatusEntity) => dispatch(pinRequest(status)); - api(getState)(`/api/v1/statuses/${status.id}/pin`, { method: 'JSON' }).then(response => { + api(getState)(`/api/v1/statuses/${status.id}/pin`, { method: 'POST' }).then(response => { dispatch(importFetchedStatus(response.json)); dispatch(pinSuccess(status)); }).catch(error => { @@ -618,7 +618,7 @@ const unpin = (status: StatusEntity) => dispatch(unpinRequest(status)); - api(getState)(`/api/v1/statuses/${status.id}/unpin`, { method: 'JSON' }).then(response => { + api(getState)(`/api/v1/statuses/${status.id}/unpin`, { method: 'POST' }).then(response => { dispatch(importFetchedStatus(response.json)); dispatch(unpinSuccess(status)); }).catch(error => {