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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
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'); |
|
|
|
} |
|
|
|
|