Skip to content

Commit

Permalink
fix(activity): Fix download activity parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 19, 2024
1 parent 85046e7 commit 5262bc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/files_sharing/lib/Activity/Providers/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ protected function getFile($parameter, ?IEvent $event = null) {
$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');
}
Expand Down

0 comments on commit 5262bc6

Please sign in to comment.