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 825119120e..f73d8bf82f 100644 --- a/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts +++ b/packages/backend/src/server/api/endpoints/compatibility/instance-info.ts @@ -181,10 +181,10 @@ const getContact = async ( following_count: user.followingCount, statuses_count: user.notesCount, last_status_at: user.lastActiveDate?.toISOString(), - emojis: emojis ? user.emojis.map(e => ({ + emojis: emojis ? user.emojis.filter((e, i, a) => e in emojis && a.indexOf(e) == i).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].originalUrl, visible_in_picker: true, })) : [], };