Skip to content

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

:art: Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780

Daniel3d8d1ef54477
diff --git a/kernel/model/cloud_service.go b/kernel/model/cloud_service.go
index 9ee50ceac9..c9c33affa6 100644
--- a/kernel/model/cloud_service.go
+++ b/kernel/model/cloud_service.go
@@ -507,10 +507,10 @@ func GetCloudShorthands(page int) (result map[string]interface{}, err error) {
shorthand["hCreated"] = hCreated.Format("2006-01-02 15:04")
desc := shorthand["shorthandDesc"].(string)
- desc = audioRegexp.ReplaceAllString(desc, "语音、")
- desc = videoRegexp.ReplaceAllString(desc, "视频、")
- desc = strings.TrimSuffix(desc, "、")
+ desc = audioRegexp.ReplaceAllString(desc, " 语音 ")
+ desc = videoRegexp.ReplaceAllString(desc, " 视频 ")
desc = strings.ReplaceAll(desc, "\n\n", "")
+ desc = strings.TrimSpace(desc)
shorthand["shorthandDesc"] = desc
md := shorthand["shorthandContent"].(string)