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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
}