An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve Liandi clipping https://github.com/siyuan-note/siyuan/issues/12368
Daniel4d00f2aeb661
diff --git a/kernel/api/extension.go b/kernel/api/extension.goindex b1db87e939..fc9025d12a 100644--- a/kernel/api/extension.go+++ b/kernel/api/extension.go@@ -126,10 +126,11 @@ func extensionCopy(c *gin.Context) {var md stringvar withMath boolif nil != form.Value["href"] {- if href := form.Value["href"][0]; strings.HasPrefix(href, "https://ld246.com/article/") {+ if href := form.Value["href"][0]; strings.HasPrefix(href, "https://ld246.com/article/") || strings.HasPrefix(href, "https://liuyun.io/article/") {// 剪藏链滴帖子时直接使用 Markdown 接口的返回// https://ld246.com/article/raw/1724850322251href = strings.ReplaceAll(href, "https://ld246.com/article/", "https://ld246.com/article/raw/")+ href = strings.ReplaceAll(href, "https://liuyun.io/article/", "https://liuyun.io/article/raw/")resp, err := httpclient.NewCloudRequest30s().Get(href)if nil != err {logging.LogWarnf("get [%s] failed: %s", href, err)