From 144514e49e25b7b123fd535902fee97fa39fb446 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 19 Sep 2022 21:36:50 +0200 Subject: Fix avatar cleanup on user delete Signed-off-by: Joas Schilling --- lib/private/Server.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/Server.php') diff --git a/lib/private/Server.php b/lib/private/Server.php index c1a50cfcaff..e7f4019e00b 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -153,8 +153,8 @@ use OC\Tagging\TagMapper; use OC\Talk\Broker; use OC\Template\JSCombiner; use OC\User\DisplayNameCache; +use OC\User\Listeners\BeforeUserDeletedListener; use OC\User\Listeners\UserChangedListener; -use OC\User\Listeners\UserDeletedListener; use OCA\Theming\ImageManager; use OCA\Theming\ThemingDefaults; use OCA\Theming\Util; @@ -248,13 +248,13 @@ use OCP\SystemTag\ISystemTagManager; use OCP\SystemTag\ISystemTagObjectMapper; use OCP\Talk\IBroker; use OCP\User\Events\BeforePasswordUpdatedEvent; +use OCP\User\Events\BeforeUserDeletedEvent; use OCP\User\Events\BeforeUserLoggedInEvent; use OCP\User\Events\BeforeUserLoggedInWithCookieEvent; use OCP\User\Events\BeforeUserLoggedOutEvent; use OCP\User\Events\PasswordUpdatedEvent; use OCP\User\Events\PostLoginEvent; use OCP\User\Events\UserChangedEvent; -use OCP\User\Events\UserDeletedEvent; use OCP\User\Events\UserLoggedInEvent; use OCP\User\Events\UserLoggedInWithCookieEvent; use OCP\User\Events\UserLoggedOutEvent; @@ -1499,7 +1499,7 @@ class Server extends ServerContainer implements IServerContainer { $eventDispatcher->addServiceListener(LoginFailed::class, LoginFailedListener::class); $eventDispatcher->addServiceListener(PostLoginEvent::class, UserLoggedInListener::class); $eventDispatcher->addServiceListener(UserChangedEvent::class, UserChangedListener::class); - $eventDispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedListener::class); + $eventDispatcher->addServiceListener(BeforeUserDeletedEvent::class, BeforeUserDeletedListener::class); } /** -- cgit v1.2.3