Fix emoji having double http(s) in their links

This commit is contained in:
Ekaterina Vaartis 2019-09-24 00:34:14 +03:00
parent b7c8ebecd3
commit 8899157dc8

View file

@ -140,8 +140,7 @@ export async function updatePackFile(host, token, args) {
} }
export function addressOfEmojiInPack(host, packName, name) { export function addressOfEmojiInPack(host, packName, name) {
// This needs http because hackney on the BE does not understand URLs with just "//" return `${baseName(host)}/emoji/${packName}/${name}`
return `http://${baseName(host)}/emoji/${packName}/${name}`
} }
const authHeaders = (token) => token ? { 'Authorization': `Bearer ${getToken()}` } : {} const authHeaders = (token) => token ? { 'Authorization': `Bearer ${getToken()}` } : {}