Skip to content

Commit

Permalink
fix(activity): Fix activity parameter types
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>

[skip ci]
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Feb 17, 2025
1 parent 9951f2f commit 90c1aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/CardDAV/Activity/Provider/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ protected function generateAddressbookParameter(array $data, IL10N $l): array {
$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'],
];
}
Expand Down
4 changes: 2 additions & 2 deletions apps/systemtags/lib/Activity/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function getParameters(IEvent $event) {
protected function getFileParameter($id, $path) {
return [
'type' => 'file',
'id' => $id,
'id' => (string)$id,
'name' => basename($path),
'path' => trim($path, '/'),
];
Expand All @@ -296,7 +296,7 @@ protected function getSystemTagParameter($parameter) {
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',
Expand Down

0 comments on commit 90c1aa9

Please sign in to comment.