Skip to content

Commit

Permalink
Merge pull request #37673 from owncloud/favorite-capability
Browse files Browse the repository at this point in the history
Add explicit favorite capability entry
  • Loading branch information
Vincent Petry authored Jul 9, 2020
2 parents 20ba9d7 + 0cfbdfc commit bb2ddd7
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']['favorites']);
}
}
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 bb2ddd7

Please sign in to comment.