Browse Source

Merge pull request #48812 from nextcloud/bugfix/noid/fix-download-activity-parameters

fix(activity): Fix download activity parameters
pull/48758/head
Joas Schilling 1 year ago
committed by GitHub
parent
commit
64cbf914eb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/files_sharing/lib/Activity/Providers/Base.php

3
apps/files_sharing/lib/Activity/Providers/Base.php

@ -122,9 +122,8 @@ abstract class Base implements IProvider {
$path = reset($parameter);
$id = (string)key($parameter);
} elseif ($event !== null) {
// Legacy from before ownCloud 8.2
$path = $parameter;
$id = $event->getObjectId();
$id = (string)$event->getObjectId();
} else {
throw new \InvalidArgumentException('Could not generate file parameter');
}

Loading…
Cancel
Save