An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: 编辑器式反链面板 https://github.com/siyuan-note/siyuan/issues/3565
Liang Dingefefa9baafb9
diff --git a/kernel/api/ref.go b/kernel/api/ref.goindex 02b0ee37b7..29ca48289a 100644--- a/kernel/api/ref.go+++ b/kernel/api/ref.go@@ -90,7 +90,7 @@ func getBacklink(c *gin.Context) {keyword := arg["k"].(string)mentionKeyword := arg["mk"].(string)beforeLen := arg["beforeLen"].(float64)- boxID, backlinks, backmentions, linkRefsCount, mentionsCount := model.BuildTreeBacklink(id, keyword, mentionKeyword, int(beforeLen))+ boxID, backlinks, backmentions, linkRefsCount, mentionsCount := model.GetBacklink(id, keyword, mentionKeyword, int(beforeLen))ret.Data = map[string]interface{}{"backlinks": backlinks,"linkRefsCount": linkRefsCount,diff --git a/kernel/model/backlink.go b/kernel/model/backlink.goindex 8586aa3499..65013e3d0a 100644--- a/kernel/model/backlink.go+++ b/kernel/model/backlink.go@@ -297,7 +297,7 @@ func buildBacklink(refID string, refTree *parse.Tree, luteEngine *lute.Lute) (rereturn}-func BuildTreeBacklink(id, keyword, mentionKeyword string, beforeLen int) (boxID string, backlinks, backmentions []*Path, linkRefsCount, mentionsCount int) {+func GetBacklink(id, keyword, mentionKeyword string, beforeLen int) (boxID string, backlinks, backmentions []*Path, linkRefsCount, mentionsCount int) {keyword = strings.TrimSpace(keyword)mentionKeyword = strings.TrimSpace(mentionKeyword)backlinks, backmentions = []*Path{}, []*Path{}