mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
Fix emojis crashing when it's not found
This commit is contained in:
parent
ed9daf32e8
commit
1fd147d054
@ -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.map(e => ({
|
emojis: emojis ? user.emojis.filter(e => e in emojis).map(e => ({
|
||||||
shortcode: e,
|
shortcode: e,
|
||||||
static_url: `${config.url}/files/${emojis[e].publicUrl}`,
|
static_url: `${config.url}/files/${emojis[e].publicUrl}`,
|
||||||
url: `${config.url}/files/${emojis[e].publicUrl}`,
|
url: `${config.url}/files/${emojis[e].publicUrl}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user