self-review

This commit is contained in:
Henry Jameson 2026-06-26 14:42:01 +03:00
commit 9b53879e70
9 changed files with 8 additions and 29 deletions

View file

@ -312,9 +312,6 @@ export const deleteAnnouncement = ({ id, credentials }) =>
})
export const setReportState = ({ id, state, credentials }) => {
// TODO: Can't use promisedRequest because on OK this does not return json
// See https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1322
return promisedRequest({
url: REPORTS,
credentials,
@ -328,19 +325,6 @@ export const setReportState = ({ id, state, credentials }) => {
],
},
})
.then((data) => {
if (data.status >= 500) {
throw Error(data.statusText)
} else if (data.status >= 400) {
return data.json()
}
return data
})
.then((data) => {
if (data.errors) {
throw Error(data.errors[0].message)
}
})
}
export const getInstanceDBConfig = ({ credentials }) =>

View file

@ -842,7 +842,6 @@ export const getList = ({ listId, credentials }) =>
})
export const updateList = ({ listId, title, credentials }) =>
console.log('PUT', MASTODON_LIST_URL(listId)) ||
promisedRequest({
url: MASTODON_LIST_URL(listId),