diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-14 14:08:27 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2023-04-18 14:58:12 +0200 |
commit | 90a817cee5e22076f5aaa2c8a029d2316857d4fa (patch) | |
tree | a2088fc0a1f70502651fd7d6201b2bb4fd36c481 /apps/user_status | |
parent | 17a8de9e56dcccc857017d0b1ae8ebf329eec03f (diff) | |
download | nextcloud-server-90a817cee5e22076f5aaa2c8a029d2316857d4fa.tar.gz nextcloud-server-90a817cee5e22076f5aaa2c8a029d2316857d4fa.zip |
feat(status): Add a capability for the restore
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r-- | apps/user_status/lib/Capabilities.php | 1 | ||||
-rw-r--r-- | apps/user_status/tests/Unit/CapabilitiesTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_status/lib/Capabilities.php b/apps/user_status/lib/Capabilities.php index 8f26525286c..5b3e105d31a 100644 --- a/apps/user_status/lib/Capabilities.php +++ b/apps/user_status/lib/Capabilities.php @@ -47,6 +47,7 @@ class Capabilities implements ICapability { return [ 'user_status' => [ 'enabled' => true, + 'restore' => true, 'supports_emoji' => $this->emojiHelper->doesPlatformSupportEmoji(), ], ]; diff --git a/apps/user_status/tests/Unit/CapabilitiesTest.php b/apps/user_status/tests/Unit/CapabilitiesTest.php index 02874fcbf6d..89e87775312 100644 --- a/apps/user_status/tests/Unit/CapabilitiesTest.php +++ b/apps/user_status/tests/Unit/CapabilitiesTest.php @@ -57,6 +57,7 @@ class CapabilitiesTest extends TestCase { $this->assertEquals([ 'user_status' => [ 'enabled' => true, + 'restore' => true, 'supports_emoji' => $supportsEmojis, ] ], $this->capabilities->getCapabilities()); |