mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-02 08:48:06 +09:00
Merge pull request 'Upkeep: Fix errors regarding emojis in the mastodon instance info compatability endpoint.' (#9348) from legiayayana/calckey:legiayayana/fix-missing-emotes-crash into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9348
This commit is contained in:
commit
7c2087dc4b
@ -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,
|
||||
})) : [],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user