mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
deduplicate emojis
This commit is contained in:
parent
3d0859e7fc
commit
a443cb7604
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ const getContact = async (
|
|||
following_count: user.followingCount,
|
||||
statuses_count: user.notesCount,
|
||||
last_status_at: user.lastActiveDate?.toISOString(),
|
||||
emojis: emojis ? user.emojis.filter(e => e in emojis).map(e => ({
|
||||
emojis: emojis ? user.emojis.filter((e, i, a) => e in emojis && a.indexOf(e) == i).map(e => ({
|
||||
shortcode: e,
|
||||
static_url: emojis[e].publicUrl,
|
||||
url: emojis[e].originalUrl,
|
||||
|
|
Loading…
Add table
Reference in a new issue