Skip to content

Commit

Permalink
Merge pull request #10368 from 2403905/issue-10293
Browse files Browse the repository at this point in the history
Disable download activity
  • Loading branch information
2403905 authored Oct 23, 2024
2 parents c6121f5 + ee42655 commit 09dec76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-disable-download-activity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Disable download activity

We disable the download activity until we have a proper solution for it.

https://github.com/owncloud/ocis/pull/10367
https://github.com/owncloud/ocis/issues/10293
11 changes: 6 additions & 5 deletions services/activitylog/pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ func (a *ActivitylogService) Run() {
err = a.AddActivity(ev.FileRef, e.ID, utils.TSToTime(ev.Timestamp))
case events.FileTouched:
err = a.AddActivity(ev.Ref, e.ID, utils.TSToTime(ev.Timestamp))
case events.FileDownloaded:
// we are only interested in public link downloads - so no need to store others.
if ev.ImpersonatingUser.GetDisplayName() == "Public" {
err = a.AddActivity(ev.Ref, e.ID, utils.TSToTime(ev.Timestamp))
}
// Disabled https://github.com/owncloud/ocis/issues/10293
//case events.FileDownloaded:
// we are only interested in public link downloads - so no need to store others.
//if ev.ImpersonatingUser.GetDisplayName() == "Public" {
// err = a.AddActivity(ev.Ref, e.ID, utils.TSToTime(ev.Timestamp))
//}
case events.ContainerCreated:
err = a.AddActivity(ev.Ref, e.ID, utils.TSToTime(ev.Timestamp))
case events.ItemTrashed:
Expand Down

0 comments on commit 09dec76

Please sign in to comment.