files_downloadactivity icon indicating copy to clipboard operation
files_downloadactivity copied to clipboard

OC_Filesystem - Hook - Read - not fired when opening a file...

Open ReneFloitgraf opened this issue 1 year ago • 1 comments
trafficstars

Even with the "updated" lines to be compatible to NC 28, there is a problem with the connectHook in Application.php...

Steps to reproduce

  1. Install the App with updated lines.
  2. Open a file over a shared link (no download)
  3. See the activities - there will be no entry

Expected behaviour

I think there should be an entry in the activites, like someone is downloading the file.

Actual behaviour

No activity is written to the history.

Server configuration

Linux, PHP8.2, NC28

Util::connectHook('OC_Filesystem', 'read', $this, 'listenReadFile');

I'm able to fire the event, by placing it in the register-function and using "$context->registerEventListener", but I have no idea how to complete the function.

ReneFloitgraf avatar Jun 14 '24 13:06 ReneFloitgraf