mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
Update Profile model
This commit is contained in:
parent
40d1b5342a
commit
0cc736d109
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ class Profile extends Model
|
|||
|
||||
protected $visible = ['id', 'username', 'name'];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function url($suffix = '')
|
||||
{
|
||||
return url($this->username . $suffix);
|
||||
|
|
Loading…
Reference in a new issue