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 d21bd7e commit 0824971
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 0824971

Please sign in to comment.