fix(activity): Fix download activity parameters

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/48812/head
Joas Schilling 12 months ago
parent 85046e7e9d
commit 5262bc6be3
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 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