Sfoglia il codice sorgente

:art: Simplify document block paths in search results https://github.com/siyuan-note/siyuan/issues/13364

Daniel 7 mesi fa
parent
commit
a8f088cb5e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      kernel/model/search.go

+ 3 - 1
kernel/model/search.go

@@ -1125,7 +1125,9 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
 		ret = []*Block{}
 		ret = []*Block{}
 	}
 	}
 
 
-	filterSelfHPath(ret)
+	if 0 == groupBy {
+		filterSelfHPath(ret)
+	}
 	return
 	return
 }
 }