From 4aa75a278bbc96eeb2bfff16f49c9df8d647de8b Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 30 Jun 2026 14:42:27 +0300 Subject: [PATCH 1/2] fix emoji copying --- src/api/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/admin.js b/src/api/admin.js index 67fb5038b..c33f863a7 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -435,7 +435,7 @@ export const downloadRemoteEmojiPackZIP = ({ return promisedRequest({ url: EMOJI_PACKS_DL_REMOTE_ZIP_URL, method: 'POST', - payload: data, + formData: data, }) } @@ -460,7 +460,7 @@ export const addNewEmojiFile = ({ packName, file, shortcode, filename }) => { return promisedRequest({ url: EMOJI_UPDATE_FILE_URL(packName), method: 'POST', - payload: data, + formData: data, }) } From 7f42e0e5a720dc160a9e34dd943760befffc40b9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 30 Jun 2026 14:44:25 +0300 Subject: [PATCH 2/2] cleanup --- src/api/user.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/api/user.js b/src/api/user.js index b9035da77..17e13195d 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -181,9 +181,6 @@ export const unmuteConversation = ({ id, credentials }) => }).then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) })) export const vote = ({ pollId, choices, credentials }) => { - const form = new FormData() - form.append('choices', choices) - return promisedRequest({ url: MASTODON_VOTE_URL(encodeURIComponent(pollId)), method: 'POST',