Fixed activity filter depth

This commit is contained in:
Roman Perekhod
2024-09-12 09:01:01 +02:00
parent b59eaaa13f
commit 9488452216
2 changed files with 9 additions and 0 deletions

View File

@@ -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

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