mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
Fixed activity filter depth
This commit is contained in:
6
changelog/unreleased/fix-acitivity-filter.md
Normal file
6
changelog/unreleased/fix-acitivity-filter.md
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user