Skip to content

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

:art: 反链面板支持文档排序 https://github.com/siyuan-note/insider/issues/1086

Liang Ding73d9411b4734
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go
index 095b422fc2..c2f5e647f3 100644
--- a/kernel/model/backlink.go
+++ b/kernel/model/backlink.go
@@ -362,7 +362,7 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
}
sort.Slice(backmentions, func(i, j int) bool {
- switch sortMode {
+ switch mentionSortMode {
case util.SortModeUpdatedDESC:
return backmentions[i].Updated > backmentions[j].Updated
case util.SortModeUpdatedASC: