summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-10 15:50:09 +0100
committerJoas Schilling <coding@schilljs.com>2022-02-15 16:06:32 +0100
commitc5d11abff9b46cfee186f68f1d9ee575db41ce5e (patch)
treed3fdcdddb9a11f0dbe06976e515f9b233baf8f48
parentba7a31d73b34c622ed74e6aed8c1695327c2d574 (diff)
downloadnextcloud-server-c5d11abff9b46cfee186f68f1d9ee575db41ce5e.tar.gz
nextcloud-server-c5d11abff9b46cfee186f68f1d9ee575db41ce5e.zip
Directly delete the user status instead of getting it a second time
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--apps/user_status/lib/Service/StatusService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php
index ad50a541a00..1f72fd8a21b 100644
--- a/apps/user_status/lib/Service/StatusService.php
+++ b/apps/user_status/lib/Service/StatusService.php
@@ -474,7 +474,7 @@ class StatusService {
// Another status is set automatically, do nothing
return;
}
- $this->removeUserStatus($userId);
+ $this->mapper->delete($userStatus);
} catch (DoesNotExistException $ex) {
// No current status => nothing to delete
}