emoji: filter nesting folder of custom emoji before adding emoji (#8903)

Co-authored-by: chrisli <chris.li@grapecity.com>
This commit is contained in:
lindalin
2023-08-04 23:00:59 +08:00
committed by GitHub
parent 3f0a49dcae
commit cf71d86263

View File

@@ -128,6 +128,9 @@ func getEmojiConf(c *gin.Context) {
if strings.HasPrefix(name, ".") {
continue
}
if subCustomEmoji.IsDir() {
continue
}
addCustomEmoji(customEmoji.Name()+"/"+name, &items)
}