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