mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Fix emoji parsing in the remote emoji fetcher
This commit is contained in:
parent
275244b941
commit
dcdee7e4bf
1 changed files with 5 additions and 2 deletions
|
|
@ -55,8 +55,11 @@ export const fetchEmoji = async (emoji: Lysand.Emoji, host?: string) => {
|
|||
return await client.emoji.create({
|
||||
data: {
|
||||
shortcode: emoji.name,
|
||||
url: emoji.url[0].content,
|
||||
alt: emoji.alt || emoji.url[0].description || undefined,
|
||||
url: Object.entries(emoji.url)[0][1].content,
|
||||
alt:
|
||||
emoji.alt ||
|
||||
Object.entries(emoji.url)[0][1].description ||
|
||||
undefined,
|
||||
content_type: Object.keys(emoji.url)[0],
|
||||
visible_in_picker: true,
|
||||
instance: host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue