mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Let avatarUrl attribute delete the avatar as well
This commit is contained in:
parent
6a10b4484f
commit
5a43f915cb
|
@ -168,6 +168,8 @@ class EditUserHandler
|
|||
} catch (Exception $e) {
|
||||
//
|
||||
}
|
||||
} elseif (array_key_exists('avatarUrl', $attributes)) {
|
||||
$this->avatarUploader->remove($user);
|
||||
}
|
||||
|
||||
$this->events->fire(
|
||||
|
|
Loading…
Reference in New Issue
Block a user