mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10: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 {
|
for _, subCustomEmoji := range subCustomEmojis {
|
||||||
name = subCustomEmoji.Name()
|
if subCustomEmoji.IsDir() {
|
||||||
if strings.HasPrefix(name, ".") {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if subCustomEmoji.IsDir() {
|
|
||||||
|
name = subCustomEmoji.Name()
|
||||||
|
if strings.HasPrefix(name, ".") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -488,6 +488,8 @@ func FullReindex() {
|
||||||
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
||||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
||||||
task.AppendTask(task.ReloadUI, util.ReloadUI)
|
task.AppendTask(task.ReloadUI, util.ReloadUI)
|
||||||
|
|
||||||
|
ReindexAssetContent()
|
||||||
}
|
}
|
||||||
|
|
||||||
func fullReindex() {
|
func fullReindex() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue