mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-17 18:38:18 -05:00
Merge pull request #10368 from 2403905/issue-10293
Disable download activity
This commit is contained in:
6
changelog/unreleased/fix-disable-download-activity.md
Normal file
6
changelog/unreleased/fix-disable-download-activity.md
Normal file
@@ -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
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user