diff --git a/apps/files/lib/Capabilities.php b/apps/files/lib/Capabilities.php index 797756bd24ad..9dd8a20bd040 100644 --- a/apps/files/lib/Capabilities.php +++ b/apps/files/lib/Capabilities.php @@ -61,6 +61,7 @@ public function getCapabilities() { 'privateLinksDetailsParam' => true, 'bigfilechunking' => true, 'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']), + 'favorites' => true ], ]; } diff --git a/apps/files/tests/CapabilitiesTest.php b/apps/files/tests/CapabilitiesTest.php index 70af42962fe5..d7a3f087b3dc 100644 --- a/apps/files/tests/CapabilitiesTest.php +++ b/apps/files/tests/CapabilitiesTest.php @@ -47,5 +47,6 @@ public function testGetCapabilities() { $this->assertArrayHasKey('files', $result); $this->assertArrayHasKey('privateLinksDetailsParam', $result['files']); $this->assertTrue($result['files']['privateLinksDetailsParam']); + $this->assertTrue($result['files']['capabilities']); } } diff --git a/changelog/unreleased/37673 b/changelog/unreleased/37673 new file mode 100644 index 000000000000..1add3bf36f23 --- /dev/null +++ b/changelog/unreleased/37673 @@ -0,0 +1,6 @@ +Enhancement: Add capability for the favorite files feature + +The server is now exposing a new capability to advertise that the server supports the favorite files feature. + +https://github.com/owncloud/core/pull/37673 +https://github.com/owncloud/ocis-reva/issues/354