mirror of
https://github.com/flarum/core.git
synced 2025-10-26 21:21:28 +01:00
Fix AvatarChanged event (#2197)
* Fix AvatarChanged event not being dispatched when changing avatar Also fix the uploader to trigger the event only once
This commit is contained in:
@@ -80,6 +80,8 @@ class UploadAvatarHandler
|
||||
|
||||
$user->save();
|
||||
|
||||
$this->dispatchEventsFor($user, $actor);
|
||||
|
||||
return $user;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user