deduplicate emojis
This commit is contained in:
parent
9e6c7c57c4
commit
c36274848d
|
@ -181,7 +181,7 @@ const getContact = async (
|
||||||
following_count: user.followingCount,
|
following_count: user.followingCount,
|
||||||
statuses_count: user.notesCount,
|
statuses_count: user.notesCount,
|
||||||
last_status_at: user.lastActiveDate?.toISOString(),
|
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,
|
shortcode: e,
|
||||||
static_url: emojis[e].publicUrl,
|
static_url: emojis[e].publicUrl,
|
||||||
url: emojis[e].originalUrl,
|
url: emojis[e].originalUrl,
|
||||||
|
|
Loading…
Reference in New Issue