mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Change name of avatar field in users table.
This commit is contained in:
@@ -211,9 +211,15 @@ class User extends Model
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function changeAvatarUrl($url)
|
||||
/**
|
||||
* Change the path of the user avatar.
|
||||
*
|
||||
* @param string $path
|
||||
* @return $this
|
||||
*/
|
||||
public function changeAvatarPath($path)
|
||||
{
|
||||
$this->avatar = $url;
|
||||
$this->avatar_path = $path;
|
||||
|
||||
$this->raise(new UserAvatarWasChanged($this));
|
||||
|
||||
|
Reference in New Issue
Block a user