mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Filter nesting folder of custom emoji before adding emoji https://github.com/siyuan-note/siyuan/pull/8903
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -488,6 +488,8 @@ func FullReindex() {
|
||||
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
||||
task.AppendTask(task.ReloadUI, util.ReloadUI)
|
||||
|
||||
ReindexAssetContent()
|
||||
}
|
||||
|
||||
func fullReindex() {
|
||||
|
||||
Reference in New Issue
Block a user