Fixed activity filter depth

This commit is contained in:
Roman Perekhod committed 2024-09-12 22:26:44 +02:00
1 parent b59eaaa13f
commit 9488452216
2 files changed
+9

No files matched your search

@@ -0,0 +1,6 @@
Bugfix: Fixed activity filter depth
Fixed activity filter 'depth:-1'
https://github.com/owncloud/ocis/pull/10031
https://github.com/owncloud/ocis/issues/9850
+3
View File
@@ -240,6 +240,9 @@ func (s *ActivitylogService) getFilters(query string) (*provider.ResourceId, int
if err != nil {
return nil, limit, nil, nil, sortby, err
}
if depth == -1 {
break
}
prefilters = append(prefilters, func(a RawActivity) bool {
return a.Depth <= depth