From 1b006b9d6e77ac78fcec63a6daef19f227f4067d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 11 Oct 2016 10:49:40 +0200 Subject: Remove notifications upon user deletion Signed-off-by: Joas Schilling --- lib/private/user/user.php | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3