summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-11 10:49:40 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-11 10:49:40 +0200
commit1b006b9d6e77ac78fcec63a6daef19f227f4067d (patch)
treea699da2b28d9d35b9f6ab735559a68cb8b7b415f
parent2f546eab7101554a8002e299f43f48a70d82f65f (diff)
downloadnextcloud-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.php4
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) {