fix: resolve host properly

This commit is contained in:
Mar0xy 2023-09-25 16:01:19 +02:00
parent b0b96f00b9
commit dd72610daa
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -299,7 +299,7 @@ namespace MisskeyAPI {
pinned: null,
emoji_reactions: typeof n.reactions === 'object' ? mapReactions(n.reactions, n.myReaction) : [],
bookmarked: false,
quote: n.renote && n.text ? note(n.renote, host) : false
quote: n.renote && n.text ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : false
}
}