From f0a30d6b4ae76dd39780bd3107ddcc4156ae548e 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 40f83a5f0..1fbb3c3c1 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, })) : [], };