diff --git a/kernel/api/system.go b/kernel/api/system.go index 779e6551a..6b1223ad6 100644 --- a/kernel/api/system.go +++ b/kernel/api/system.go @@ -128,6 +128,9 @@ func getEmojiConf(c *gin.Context) { if strings.HasPrefix(name, ".") { continue } + if subCustomEmoji.IsDir() { + continue + } addCustomEmoji(customEmoji.Name()+"/"+name, &items) }