fix: correct static proxy usage in custom emoji image URL construction

This commit is contained in:
bunizao
2026-01-16 21:32:00 +08:00
parent eda760beb9
commit 571072fe58

View File

@@ -28,8 +28,7 @@ async function getCustomEmojiImage(emojiId, staticProxy = '') {
if (!emojiId)
return null
const imageUrl = `https://t.me/i/emoji/${emojiId}.webp`
const proxy = staticProxy || '/static/'
return `${proxy}${imageUrl}`
return `${staticProxy}${imageUrl}`
}
async function hydrateTgEmoji($, content, { staticProxy } = {}) {