aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-19 22:50:44 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-19 22:50:44 +0200
commit5262bc6be30834ccb0f5764850fb093c0657fa7e (patch)
treef48dd2aa254914d4a8630e9482ea54e33cfeccbd /apps/files_sharing
parent85046e7e9dc415722c53d11defdefb243d165797 (diff)
downloadnextcloud-server-5262bc6be30834ccb0f5764850fb093c0657fa7e.tar.gz
nextcloud-server-5262bc6be30834ccb0f5764850fb093c0657fa7e.zip
fix(activity): Fix download activity parametersbugfix/noid/fix-download-activity-parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing')
-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');
}