Browse Source

Remove notifications upon user deletion

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1558/head
Joas Schilling 10 years ago
parent
commit
5b7b8f8dac
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  1. 4
      lib/private/User/User.php

4
lib/private/User/User.php

@ -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) {

Loading…
Cancel
Save