aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib/Controller/StatusesController.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-11-19 15:09:05 +0100
committerCarl Schwan <carl@carlschwan.eu>2021-11-23 12:21:42 +0100
commit92fe694b7f088b0aea797b83506e4ad18a061dbf (patch)
tree05eddd0931cc6b377a0e0c3dc9b56c609526f420 /apps/user_status/lib/Controller/StatusesController.php
parentc35ad0c20d420c3056565c6bad21133dc035b2df (diff)
downloadnextcloud-server-92fe694b7f088b0aea797b83506e4ad18a061dbf.tar.gz
nextcloud-server-92fe694b7f088b0aea797b83506e4ad18a061dbf.zip
Fix multiple bugs with user status
* Fix editing the status while on a call, don't send a bogus request * Clean backup user status when setting up a new status manually * A bit more type hinting Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/user_status/lib/Controller/StatusesController.php')
-rw-r--r--apps/user_status/lib/Controller/StatusesController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/user_status/lib/Controller/StatusesController.php b/apps/user_status/lib/Controller/StatusesController.php
index 56dbeb4f7a5..d30389e1716 100644
--- a/apps/user_status/lib/Controller/StatusesController.php
+++ b/apps/user_status/lib/Controller/StatusesController.php
@@ -87,10 +87,8 @@ class StatusesController extends OCSController {
}
/**
- * @NoAdminRequired
- *
* @param UserStatus $status
- * @return array
+ * @return array{userId: string, message: string, icon: string, clearAt: int, status: string}
*/
private function formatStatus(UserStatus $status): array {
$visibleStatus = $status->getStatus();