Remove notifications upon user deletion
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8a14f4a899
commit
5b7b8f8dac
|
@ -214,6 +214,10 @@ class User implements IUser {
|
||||||
|
|
||||||
\OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid);
|
\OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid);
|
||||||
\OC::$server->getCommentsManager()->deleteReadMarksFromUser($this);
|
\OC::$server->getCommentsManager()->deleteReadMarksFromUser($this);
|
||||||
|
|
||||||
|
$notification = \OC::$server->getNotificationManager()->createNotification();
|
||||||
|
$notification->setUser($this->uid);
|
||||||
|
\OC::$server->getNotificationManager()->markProcessed($notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->emitter) {
|
if ($this->emitter) {
|
||||||
|
|
Loading…
Reference in New Issue