Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit favorite capability entry #37673

Merged
merged 2 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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