diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-28 13:59:50 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-29 15:40:52 +0200 |
commit | 5b7b8f8dac7d2d1e6fda6526628557ce7233257d (patch) | |
tree | 45eb68ac31b5da053a272ac3179956ad1df03f33 /lib/private/User | |
parent | 8a14f4a8990e2659bc42cb65c77fce9a5d4fa96f (diff) | |
download | nextcloud-server-5b7b8f8dac7d2d1e6fda6526628557ce7233257d.tar.gz nextcloud-server-5b7b8f8dac7d2d1e6fda6526628557ce7233257d.zip |
Remove notifications upon user deletion
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/User')
-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 94ac8c13621..11c0cc8649a 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -214,6 +214,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) { |