mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
emoji: filter nesting folder of custom emoji before adding emoji (#8903)
Co-authored-by: chrisli <chris.li@grapecity.com>
This commit is contained in:
parent
3f0a49dcae
commit
cf71d86263
1 changed files with 3 additions and 0 deletions
|
|
@ -128,6 +128,9 @@ func getEmojiConf(c *gin.Context) {
|
||||||
if strings.HasPrefix(name, ".") {
|
if strings.HasPrefix(name, ".") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if subCustomEmoji.IsDir() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
addCustomEmoji(customEmoji.Name()+"/"+name, &items)
|
addCustomEmoji(customEmoji.Name()+"/"+name, &items)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue