Skip to content

Commit

Permalink
Add explicit favorite capability entry
Browse files Browse the repository at this point in the history
As it's already supported in OC 10, it's set to true.
  • Loading branch information
Vincent Petry committed Jul 9, 2020
1 parent 5574a5a commit 06d486c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/files/lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function getCapabilities() {
'privateLinksDetailsParam' => true,
'bigfilechunking' => true,
'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
'favorites' => true
],
];
}
Expand Down
1 change: 1 addition & 0 deletions apps/files/tests/CapabilitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
6 changes: 6 additions & 0 deletions changelog/unreleased/37673
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06d486c

Please sign in to comment.