diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-10 15:50:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-15 16:06:32 +0100 |
commit | c5d11abff9b46cfee186f68f1d9ee575db41ce5e (patch) | |
tree | d3fdcdddb9a11f0dbe06976e515f9b233baf8f48 | |
parent | ba7a31d73b34c622ed74e6aed8c1695327c2d574 (diff) | |
download | nextcloud-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.php | 2 |
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 } |