diff options
Diffstat (limited to 'lib/private/User/User.php')
-rw-r--r-- | lib/private/User/User.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index 94ac8c13621..68787ce60f8 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -214,10 +214,14 @@ class User implements IUser { \OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid); \OC::$server->getCommentsManager()->deleteReadMarksFromUser($this); - } - if ($this->emitter) { - $this->emitter->emit('\OC\User', 'postDelete', array($this)); + $notification = \OC::$server->getNotificationManager()->createNotification(); + $notification->setUser($this->uid); + \OC::$server->getNotificationManager()->markProcessed($notification); + + if ($this->emitter) { + $this->emitter->emit('\OC\User', 'postDelete', array($this)); + } } return !($result === false); } |