Add baseName to some remote instance requests

This commit is contained in:
Ekaterina Vaartis 2019-09-24 20:12:17 +03:00
parent 2662210063
commit e9060cd8ba

View file

@ -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
})
}