mirror of
https://github.com/nextcloud/server.git
synced 2026-03-01 13:00:44 -05:00
fix(activity): Fix activity parameter types
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
69eced3387
commit
b041438dc9
2 changed files with 5 additions and 5 deletions
|
|
@ -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'],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue