fix: cdn 修复

This commit is contained in:
Tim
2025-09-02 11:45:35 +08:00
parent 564ebfbc2c
commit 73bb873bfe
2 changed files with 10 additions and 3 deletions

View File

@@ -2,7 +2,11 @@ const toCdnUrl = (emoji) => {
const codepoints = Array.from(emoji)
.map((c) => c.codePointAt(0).toString(16))
.join('_')
return `https://fonts.gstatic.com/s/e/notoemoji/latest/${codepoints}/emoji.svg`
// 国外镜像有点小卡 (=゚ω゚)ノ, 国内大部分地区访问时会触发 SNI 封锁 / DNS 污染
// return `https://fonts.gstatic.com/s/e/notoemoji/latest/${codepoints}/emoji.svg`
// loli.net即字节系开源社区 mirror比如 jsDelivr 中国优化节点背后的 CDN 体系). 不会被墙
return `https://gstatic.loli.net/s/e/notoemoji/latest/${codepoints}/emoji.svg`
}
export const reactionEmojiMap = {