summaryrefslogtreecommitdiffstats
path: root/apps/user_status
diff options
context:
space:
mode:
authorSimon Spannagel <simonspa@kth.se>2020-11-02 17:58:23 +0100
committerSimon Spannagel <simonspa@kth.se>2020-11-02 17:59:44 +0100
commitad58d138145da504dd1fa1610c0ff797e43ce404 (patch)
tree17671677e771835572c7db33a925e520bce07d56 /apps/user_status
parent9d5362dd8e368a51d0e2fe98db9dc798b656720c (diff)
downloadnextcloud-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.php4
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);