Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/15915

Daniel6d98e3b18ad8
diff --git a/kernel/av/filter.go b/kernel/av/filter.go
index d57293c681..b7e33a6247 100644
--- a/kernel/av/filter.go
+++ b/kernel/av/filter.go
@@ -542,7 +542,7 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
}
}
case KeyTypeRelation:
- if nil != value.Relation && nil != other && nil != other.Relation {
+ if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) {
return filterTextContent(operator, value.Relation.Contents[0].Block.Content, other.Relation.Contents[0].Block.Content)
}
}