mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Filter nesting folder of custom emoji before adding emoji https://github.com/siyuan-note/siyuan/pull/8903
This commit is contained in:
parent
db13d92558
commit
b7fd16f62d
2 changed files with 6 additions and 3 deletions
|
|
@ -124,11 +124,12 @@ func getEmojiConf(c *gin.Context) {
|
|||
}
|
||||
|
||||
for _, subCustomEmoji := range subCustomEmojis {
|
||||
name = subCustomEmoji.Name()
|
||||
if strings.HasPrefix(name, ".") {
|
||||
if subCustomEmoji.IsDir() {
|
||||
continue
|
||||
}
|
||||
if subCustomEmoji.IsDir() {
|
||||
|
||||
name = subCustomEmoji.Name()
|
||||
if strings.HasPrefix(name, ".") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue