mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
Clean up attribute assignment
This commit is contained in:
parent
97a94a8c60
commit
9bc934a89d
|
@ -277,7 +277,7 @@ class User extends AbstractModel
|
||||||
*/
|
*/
|
||||||
public function changeAvatarPath($path)
|
public function changeAvatarPath($path)
|
||||||
{
|
{
|
||||||
$this->attributes['avatar_url'] = $path;
|
$this->avatar_url = $path;
|
||||||
|
|
||||||
$this->raise(new AvatarChanged($this));
|
$this->raise(new AvatarChanged($this));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user