Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-23 20:35:57 +08:00
parent 6d98e3b18a
commit e8378c6261
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -542,7 +542,8 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
}
}
case KeyTypeRelation:
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) {
if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != value.Relation.Contents[0].Block &&
nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) && nil != other.Relation.Contents[0].Block {
return filterTextContent(operator, value.Relation.Contents[0].Block.Content, other.Relation.Contents[0].Block.Content)
}
}