From 8899157dc83b8aedf9656ce88596910ed4cb4184 Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Tue, 24 Sep 2019 00:34:14 +0300 Subject: [PATCH] Fix emoji having double http(s) in their links --- src/api/emoji_packs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/emoji_packs.js b/src/api/emoji_packs.js index 086c329f..ce261fdb 100644 --- a/src/api/emoji_packs.js +++ b/src/api/emoji_packs.js @@ -140,8 +140,7 @@ export async function updatePackFile(host, token, args) { } export function addressOfEmojiInPack(host, packName, name) { - // This needs http because hackney on the BE does not understand URLs with just "//" - return `http://${baseName(host)}/emoji/${packName}/${name}` + return `${baseName(host)}/emoji/${packName}/${name}` } const authHeaders = (token) => token ? { 'Authorization': `Bearer ${getToken()}` } : {}