Skip to content

Commit

Permalink
🎨 The backlink panel supports filtering by child blocks #13275 #12985
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 26, 2024
1 parent 483faa9 commit 148a270
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kernel/model/backlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,7 @@ func matchBacklinkKeyword(block *Block, keywords []string) bool {

for _, k := range keywords {
k = strings.ToLower(k)
content := block.Content
if block.IsContainerBlock() {
content = block.FContent
}
if strings.Contains(strings.ToLower(content), k) ||
if strings.Contains(strings.ToLower(block.Content), k) ||
strings.Contains(strings.ToLower(path.Base(block.HPath)), k) ||
strings.Contains(strings.ToLower(block.Name), k) ||
strings.Contains(strings.ToLower(block.Alias), k) ||
Expand Down

0 comments on commit 148a270

Please sign in to comment.