diff options
author | Joas Schilling <coding@schilljs.com> | 2024-10-19 22:50:44 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-20 06:05:14 +0000 |
commit | 58ac37dfccf8d14f1ae6607729c5060a81d4a325 (patch) | |
tree | 71236e75b1dfe5e3b09ebca927ae401f84c906ce /apps | |
parent | fc17a414b462bf8b431fbaf44099c992389bf6aa (diff) | |
download | nextcloud-server-58ac37dfccf8d14f1ae6607729c5060a81d4a325.tar.gz nextcloud-server-58ac37dfccf8d14f1ae6607729c5060a81d4a325.zip |
fix(activity): Fix download activity parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Activity/Providers/Base.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Activity/Providers/Base.php b/apps/files_sharing/lib/Activity/Providers/Base.php index b9d044952d9..9e652952969 100644 --- a/apps/files_sharing/lib/Activity/Providers/Base.php +++ b/apps/files_sharing/lib/Activity/Providers/Base.php @@ -121,9 +121,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'); } |