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
e991bf5420
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue