diff --git a/src/api/emoji_packs.js b/src/api/emoji_packs.js index 4e7c85dd..cc07b1b6 100644 --- a/src/api/emoji_packs.js +++ b/src/api/emoji_packs.js @@ -54,7 +54,7 @@ export async function listRemotePacks(host, token, instance) { url: `/api/pleroma/emoji/packs/list_from`, method: 'post', headers: authHeaders(token), - data: { instance_address: instance } + data: { instance_address: baseName(instance) } }) } @@ -68,7 +68,7 @@ export async function downloadFrom(host, instance_address, pack_name, as, token) url: '/api/pleroma/emoji/packs/download_from', method: 'post', headers: authHeaders(token), - data: { instance_address, pack_name, as }, + data: { instance_address: baseName(instance_address), pack_name, as }, timeout: 0 }) }