From 5805792211d2a770e6cc4ad7728247a8319fab3a Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 30 Mar 2020 18:50:36 +0300 Subject: [PATCH] Update Import from FS and ListRemotePacks APIs --- src/api/emojiPacks.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/emojiPacks.js b/src/api/emojiPacks.js index cc07b1b6..d2093280 100644 --- a/src/api/emojiPacks.js +++ b/src/api/emojiPacks.js @@ -25,8 +25,8 @@ export async function reloadEmoji(host, token) { export async function importFromFS(host, token) { return await request({ baseURL: baseName(host), - url: '/api/pleroma/emoji/packs/import_from_fs', - method: 'post', + url: '/api/pleroma/emoji/packs/import', + method: 'get', headers: authHeaders(token) }) } @@ -51,10 +51,9 @@ export async function listPacks(host) { export async function listRemotePacks(host, token, instance) { return await request({ baseURL: baseName(host), - url: `/api/pleroma/emoji/packs/list_from`, - method: 'post', - headers: authHeaders(token), - data: { instance_address: baseName(instance) } + url: `/api/pleroma/emoji/packs/remote?url=${baseName(instance)}`, + method: 'get', + headers: authHeaders(token) }) }