mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 15:09:12 +00:00
fix: correct static proxy usage in custom emoji image URL construction
This commit is contained in:
@@ -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 } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user