Skip to content

Commit 33941e4

Browse files
committed
chore(absence): Add capability for absence replacement support
Signed-off-by: Marcel Müller <[email protected]> [skip ci]
1 parent 75201f8 commit 33941e4

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/dav/lib/Capabilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(IConfig $config, IAvailabilityCoordinator $coordinat
1919
}
2020

2121
/**
22-
* @return array{dav: array{chunking: string, bulkupload?: string, absence-supported?: bool}}
22+
* @return array{dav: array{chunking: string, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
2323
*/
2424
public function getCapabilities() {
2525
$capabilities = [
@@ -32,6 +32,7 @@ public function getCapabilities() {
3232
}
3333
if ($this->coordinator->isEnabled()) {
3434
$capabilities['dav']['absence-supported'] = true;
35+
$capabilities['dav']['absence-replacement'] = true;
3536
}
3637
return $capabilities;
3738
}

apps/dav/openapi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
},
4141
"absence-supported": {
4242
"type": "boolean"
43+
},
44+
"absence-replacement": {
45+
"type": "boolean"
4346
}
4447
}
4548
}

apps/dav/tests/unit/CapabilitiesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function testGetCapabilitiesWithAbsence(): void {
6868
'dav' => [
6969
'chunking' => '1.0',
7070
'absence-supported' => true,
71+
'absence-replacement' => true,
7172
],
7273
];
7374
$this->assertSame($expected, $capabilities->getCapabilities());

0 commit comments

Comments
 (0)