diff options
author | Simon Spannagel <simonspa@kth.se> | 2020-11-02 17:58:23 +0100 |
---|---|---|
committer | Simon Spannagel <simonspa@kth.se> | 2020-11-02 17:59:44 +0100 |
commit | ad58d138145da504dd1fa1610c0ff797e43ce404 (patch) | |
tree | 17671677e771835572c7db33a925e520bce07d56 /apps/user_status | |
parent | 9d5362dd8e368a51d0e2fe98db9dc798b656720c (diff) | |
download | nextcloud-server-ad58d138145da504dd1fa1610c0ff797e43ce404.tar.gz nextcloud-server-ad58d138145da504dd1fa1610c0ff797e43ce404.zip |
UserStatus: no message means clear status message. This fixes #23332
Signed-off-by: Simon Spannagel <simonspa@kth.se>
Diffstat (limited to 'apps/user_status')
-rw-r--r-- | apps/user_status/lib/Controller/UserStatusController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php index 950cafb104d..0ca82e84cbd 100644 --- a/apps/user_status/lib/Controller/UserStatusController.php +++ b/apps/user_status/lib/Controller/UserStatusController.php @@ -135,10 +135,10 @@ class UserStatusController extends OCSController { * @throws OCSBadRequestException */ public function setCustomMessage(?string $statusIcon, - string $message, + ?string $message, ?int $clearAt): DataResponse { try { - if ($message !== '') { + if ($message !== null && $message !== '') { $status = $this->service->setCustomMessage($this->userId, $statusIcon, $message, $clearAt); } else { $this->service->clearMessage($this->userId); |