]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(activity): Fix download activity parameters bugfix/noid/fix-download-activity-parameters 48812/head
authorJoas Schilling <coding@schilljs.com>
Sat, 19 Oct 2024 20:50:44 +0000 (22:50 +0200)
committerJoas Schilling <coding@schilljs.com>
Sat, 19 Oct 2024 20:50:44 +0000 (22:50 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files_sharing/lib/Activity/Providers/Base.php

index 13bf3fea0e7647e18000277b8a4e9e0a7aa844e5..9df990258c820b8cc89d56d14abbd8b99dd11c97 100644 (file)
@@ -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');
                }