]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove notifications upon user deletion
authorJoas Schilling <coding@schilljs.com>
Wed, 28 Sep 2016 11:59:50 +0000 (13:59 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 11 Oct 2016 08:41:41 +0000 (10:41 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/User/User.php

index 4d403535bf30648761566e8a6a520983306b6c8f..7859db23b6b817ff59aa185fa44543e60aa4ea20 100644 (file)
@@ -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) {