From 5a43f915cbe1c9c3210c559d2db9d5f3857c8ed8 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 7 Oct 2017 20:28:15 +1030 Subject: [PATCH] Let avatarUrl attribute delete the avatar as well --- src/Core/Command/EditUserHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/Command/EditUserHandler.php b/src/Core/Command/EditUserHandler.php index d5d4bae1b..0b366dcec 100644 --- a/src/Core/Command/EditUserHandler.php +++ b/src/Core/Command/EditUserHandler.php @@ -168,6 +168,8 @@ class EditUserHandler } catch (Exception $e) { // } + } elseif (array_key_exists('avatarUrl', $attributes)) { + $this->avatarUploader->remove($user); } $this->events->fire(