aboutsummaryrefslogtreecommitdiffstats
path: root/apps/systemtags
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-02-17 15:49:31 +0100
committerJoas Schilling <coding@schilljs.com>2025-02-19 10:40:41 +0100
commit50a6f2540c37f7c4b74423a4700b00fdc554d24c (patch)
treeccdafde0fdbfb797ec844abd185ccc0d4f7d70e2 /apps/systemtags
parent9951f2fffa1c1a9f3653cecf57ea8030fd7a9bf4 (diff)
downloadnextcloud-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.php6
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',