Skip to content
Snippets Groups Projects
Unverified Commit 5b7b8f8d authored by Joas Schilling's avatar Joas Schilling
Browse files

Remove notifications upon user deletion

parent 8a14f4a8
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment