mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
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