From 1fcd7848c6066085893423d3069bc831757d6e41 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 28 Sep 2016 13:59:50 +0200 Subject: [PATCH] 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 4d403535bf3..7859db23b6b 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) { -- 2.39.5