forked from mirror/pixelfed
Update User model
This commit is contained in:
parent
0144a5fdf6
commit
c7a4adb8ad
1 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,14 @@ class User extends Authenticatable
|
|||
return $this->hasOne(UserSetting::class);
|
||||
}
|
||||
|
||||
public function statuses()
|
||||
{
|
||||
return $this->hasManyThrough(
|
||||
Status::class,
|
||||
Profile::class
|
||||
);
|
||||
}
|
||||
|
||||
public function receivesBroadcastNotificationsOn()
|
||||
{
|
||||
return 'App.User.'.$this->id;
|
||||
|
|
Loading…
Reference in a new issue