mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 14:15:26 +08:00
Let avatarUrl attribute delete the avatar as well
This commit is contained in:
parent
8108c2f1eb
commit
51510319c1
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user