Skip to content

Commit

Permalink
Fixed activity filter depth
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Sep 12, 2024
1 parent b59eaaa commit 9488452
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-acitivity-filter.md
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions services/activitylog/pkg/service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9488452

Please sign in to comment.