From: Joas Schilling Date: Sat, 19 Oct 2024 20:50:44 +0000 (+0200) Subject: fix(activity): Fix download activity parameters X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5262bc6be30834ccb0f5764850fb093c0657fa7e;p=nextcloud-server.git fix(activity): Fix download activity parameters Signed-off-by: Joas Schilling --- diff --git a/apps/files_sharing/lib/Activity/Providers/Base.php b/apps/files_sharing/lib/Activity/Providers/Base.php index 13bf3fea0e7..9df990258c8 100644 --- a/apps/files_sharing/lib/Activity/Providers/Base.php +++ b/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'); }