mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
Let avatarUrl attribute delete the avatar as well
This commit is contained in:
@@ -168,6 +168,8 @@ class EditUserHandler
|
|||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
} elseif (array_key_exists('avatarUrl', $attributes)) {
|
||||||
|
$this->avatarUploader->remove($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->events->fire(
|
$this->events->fire(
|
||||||
|
Reference in New Issue
Block a user