diff options
author | Joas Schilling <coding@schilljs.com> | 2025-02-17 15:49:31 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-02-19 10:40:41 +0100 |
commit | 50a6f2540c37f7c4b74423a4700b00fdc554d24c (patch) | |
tree | ccdafde0fdbfb797ec844abd185ccc0d4f7d70e2 /apps/systemtags | |
parent | 9951f2fffa1c1a9f3653cecf57ea8030fd7a9bf4 (diff) | |
download | nextcloud-server-backport/50860/stable30.tar.gz nextcloud-server-backport/50860/stable30.zip |
fix(activity): Fix activity parameter typesbackport/50860/stable30
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/systemtags')
-rw-r--r-- | apps/systemtags/lib/Activity/Provider.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/systemtags/lib/Activity/Provider.php b/apps/systemtags/lib/Activity/Provider.php index e555fc56a50..ab8e326d8d9 100644 --- a/apps/systemtags/lib/Activity/Provider.php +++ b/apps/systemtags/lib/Activity/Provider.php @@ -285,7 +285,7 @@ class Provider implements IProvider { protected function getFileParameter($id, $path) { return [ 'type' => 'file', - 'id' => $id, + 'id' => (string)$id, 'name' => basename($path), 'path' => trim($path, '/'), ]; @@ -296,7 +296,7 @@ class Provider implements IProvider { if ($tagData === null) { [$name, $status] = explode('|||', substr($parameter, 3, -3)); $tagData = [ - 'id' => 0,// No way to recover the ID + 'id' => '0',// No way to recover the ID 'name' => $name, 'assignable' => $status === 'assignable', 'visible' => $status !== 'invisible', @@ -305,7 +305,7 @@ class Provider implements IProvider { return [ 'type' => 'systemtag', - 'id' => (int) $tagData['id'], + 'id' => (string)$tagData['id'], 'name' => $tagData['name'], 'assignable' => $tagData['assignable'] ? '1' : '0', 'visibility' => $tagData['visible'] ? '1' : '0', |