diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-03 16:35:57 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 14:34:23 +0100 |
commit | e3dbc3d40ccd9874dadb32b59633cb159afddc48 (patch) | |
tree | 84495c8990e907cde07185c716afba91fc54a517 /lib/private/user | |
parent | 2ce2de0ae523e91b90c39a91fdcc975f06a7674a (diff) | |
download | nextcloud-server-e3dbc3d40ccd9874dadb32b59633cb159afddc48.tar.gz nextcloud-server-e3dbc3d40ccd9874dadb32b59633cb159afddc48.zip |
different strategy in cleaning up after user was deleted
we do not listen to deletion hooks anymore, because there is no guarantee that they
will be heard - requires that something fetches the CommentsManager first.
Instead, in the user deletion routine the clean up method will be called directly. Same way
as it happens for files, group memberships, config values.
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/user.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php index d827097ee39..6c89dd06f77 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -189,6 +189,8 @@ class User implements IUser { // Delete the users entry in the storage table \OC\Files\Cache\Storage::remove('home::' . $this->uid); + + \OC::$server->getCommentsManager()->deleteReferencesOfActor('user', $this->uid); } if ($this->emitter) { |