This commit is contained in:
Daniel 2024-12-30 23:09:00 +08:00
parent 562ce58796
commit 77efc5cca4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -162,7 +162,7 @@ func getEmojiConf(c *gin.Context) {
} else { } else {
for _, customEmoji := range customEmojis { for _, customEmoji := range customEmojis {
name := customEmoji.Name() name := customEmoji.Name()
if strings.HasPrefix(name, ".") { if strings.HasPrefix(name, ".") || strings.Contains(name, "<") {
continue continue
} }
@ -180,7 +180,7 @@ func getEmojiConf(c *gin.Context) {
} }
name = subCustomEmoji.Name() name = subCustomEmoji.Name()
if strings.HasPrefix(name, ".") { if strings.HasPrefix(name, ".") || strings.Contains(name, "<") {
continue continue
} }