Disable download activity

This commit is contained in:
Roman Perekhod committed 2024-10-22 20:24:35 +02:00
1 parent ed6d44fd39
commit ee42655581
2 files changed
+12 -5

No files matched your search

@@ -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
+6 -5
View File
@@ -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: