From 200cd9f2ce30eb7c0469ffbfae2e2539e9eff55e Mon Sep 17 00:00:00 2001 From: Naomi Ahmed Date: Tue, 27 Dec 2022 23:59:46 +0000 Subject: [PATCH] Fix emoji urls being invalid --- .../src/server/api/endpoints/compatibility/instance-info.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts b/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts index 40f83a5f0a..1fbb3c3c1f 100644 --- a/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts +++ b/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts @@ -183,8 +183,8 @@ const getContact = async ( last_status_at: user.lastActiveDate?.toISOString(), emojis: emojis ? user.emojis.filter(e => e in emojis).map(e => ({ shortcode: e, - static_url: `${config.url}/files/${emojis[e].publicUrl}`, - url: `${config.url}/files/${emojis[e].publicUrl}`, + static_url: emojis[e].publicUrl, + url: emojis[e].publicUrl, visible_in_picker: true, })) : [], };