Skip to content

Commit

Permalink
Merge pull request #48812 from nextcloud/bugfix/noid/fix-download-act…
Browse files Browse the repository at this point in the history
…ivity-parameters

fix(activity): Fix download activity parameters
  • Loading branch information
nickvergessen authored Oct 20, 2024
2 parents abdffe3 + 5262bc6 commit 64cbf91
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 64cbf91

Please sign in to comment.