1
0
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:
Toby Zerner
2017-10-07 20:28:15 +10:30
parent 6a10b4484f
commit 5a43f915cb

View File

@@ -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(