fix(activity): Fix activity parameter types

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-02-17 15:49:31 +01:00 committed by backportbot[bot]
parent 69eced3387
commit b041438dc9
2 changed files with 5 additions and 5 deletions

View file

@ -45,14 +45,14 @@ abstract class Base implements IProvider {
$data['name'] === CardDavBackend::PERSONAL_ADDRESSBOOK_NAME) {
return [
'type' => 'addressbook',
'id' => $data['id'],
'id' => (string)$data['id'],
'name' => $l->t('Personal'),
];
}
return [
'type' => 'addressbook',
'id' => $data['id'],
'id' => (string)$data['id'],
'name' => $data['name'],
];
}

View file

@ -275,7 +275,7 @@ class Provider implements IProvider {
protected function getFileParameter($id, $path) {
return [
'type' => 'file',
'id' => $id,
'id' => (string)$id,
'name' => basename($path),
'path' => trim($path, '/'),
];
@ -286,7 +286,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',
@ -295,7 +295,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',