Merge branch 'emoji-double-links' into 'master'

Emoji double links

See merge request pleroma/admin-fe!46
This commit is contained in:
Maxim Filippov 2019-09-23 21:47:00 +00:00
commit 47e60b11a7

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()}` } : {}