aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-10-20 08:02:41 +0200
committerGitHub <noreply@github.com>2024-10-20 08:02:41 +0200
commit64cbf914eb0fb1e793744494e949e1ee64eb9377 (patch)
tree747c6d93cd5ffbfabdb630fb52d460f1911535d2
parentabdffe367626527ef93b3d9bb7f5b8abc60d7257 (diff)
parent5262bc6be30834ccb0f5764850fb093c0657fa7e (diff)
downloadnextcloud-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.php3
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');
}