Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

emoji: filter nesting folder of custom emoji before adding emoji (#8903)

lindalincf71d86263e9
diff --git a/kernel/api/system.go b/kernel/api/system.go
index 779e6551af..6b1223ad65 100644
--- a/kernel/api/system.go
+++ b/kernel/api/system.go
@@ -128,6 +128,9 @@ func getEmojiConf(c *gin.Context) {
if strings.HasPrefix(name, ".") {
continue
}
+ if subCustomEmoji.IsDir() {
+ continue
+ }
addCustomEmoji(customEmoji.Name()+"/"+name, &items)
}