diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-11 10:49:40 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-11 10:49:40 +0200 |
commit | 1b006b9d6e77ac78fcec63a6daef19f227f4067d (patch) | |
tree | a699da2b28d9d35b9f6ab735559a68cb8b7b415f | |
parent | 2f546eab7101554a8002e299f43f48a70d82f65f (diff) | |
download | nextcloud-server-1b006b9d6e77ac78fcec63a6daef19f227f4067d.tar.gz nextcloud-server-1b006b9d6e77ac78fcec63a6daef19f227f4067d.zip |
Remove notifications upon user deletion
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/user/user.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php index 7e1a0794c6c..ea0ebf3d910 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -212,6 +212,10 @@ class User implements IUser { \OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid); \OC::$server->getCommentsManager()->deleteReadMarksFromUser($this); + + $notification = \OC::$server->getNotificationManager()->createNotification(); + $notification->setUser($this->uid); + \OC::$server->getNotificationManager()->markProcessed($notification); } if ($this->emitter) { |