Skip to content

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

:art: Improve av https://github.com/siyuan-note/siyuan/issues/15645

Daniel4a0c4506e8f3
diff --git a/kernel/av/filter.go b/kernel/av/filter.go
index d4539fc07a..ed0bb56359 100644
--- a/kernel/av/filter.go
+++ b/kernel/av/filter.go
@@ -361,7 +361,12 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa
case KeyTypeSelect, KeyTypeMSelect:
if nil != value.MSelect {
if 1 > len(other.MSelect) {
- return true
+ switch operator {
+ case FilterOperatorIsEmpty:
+ return value.IsEmpty()
+ case FilterOperatorIsNotEmpty:
+ return !value.IsEmpty()
+ }
}
switch operator {