summaryrefslogtreecommitdiffstats
path: root/apps/user_status
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:12:56 +0100
commit72413eee47b672355102f17dc22c891743d2735c (patch)
tree44e1d359b7ce9f7e7a98d526ed99b46483cb4afa /apps/user_status
parent585d069a715bfde0e90e43e52bbd5b58d36c0173 (diff)
downloadnextcloud-server-72413eee47b672355102f17dc22c891743d2735c.tar.gz
nextcloud-server-72413eee47b672355102f17dc22c891743d2735c.zip
Directly delete the user status instead of getting it a second time
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status')
-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
}