diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-10-20 08:02:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 08:02:41 +0200 |
commit | 64cbf914eb0fb1e793744494e949e1ee64eb9377 (patch) | |
tree | 747c6d93cd5ffbfabdb630fb52d460f1911535d2 | |
parent | abdffe367626527ef93b3d9bb7f5b8abc60d7257 (diff) | |
parent | 5262bc6be30834ccb0f5764850fb093c0657fa7e (diff) | |
download | nextcloud-server-64cbf914eb0fb1e793744494e949e1ee64eb9377.tar.gz nextcloud-server-64cbf914eb0fb1e793744494e949e1ee64eb9377.zip |
Merge pull request #48812 from nextcloud/bugfix/noid/fix-download-activity-parameters
fix(activity): Fix download activity parameters
-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 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'); } |