aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-19 22:50:44 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-10-20 06:05:14 +0000
commit58ac37dfccf8d14f1ae6607729c5060a81d4a325 (patch)
tree71236e75b1dfe5e3b09ebca927ae401f84c906ce /apps
parentfc17a414b462bf8b431fbaf44099c992389bf6aa (diff)
downloadnextcloud-server-58ac37dfccf8d14f1ae6607729c5060a81d4a325.tar.gz
nextcloud-server-58ac37dfccf8d14f1ae6607729c5060a81d4a325.zip
fix(activity): Fix download activity parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-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 b9d044952d9..9e652952969 100644
--- a/apps/files_sharing/lib/Activity/Providers/Base.php
+++ b/apps/files_sharing/lib/Activity/Providers/Base.php
@@ -121,9 +121,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');
}