1
0
Fork 0
forked from mirror/pixelfed

Update User model

This commit is contained in:
Daniel Supernault 2018-12-17 23:27:58 -07:00
parent 0144a5fdf6
commit c7a4adb8ad
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -54,6 +54,14 @@ class User extends Authenticatable
return $this->hasOne(UserSetting::class); return $this->hasOne(UserSetting::class);
} }
public function statuses()
{
return $this->hasManyThrough(
Status::class,
Profile::class
);
}
public function receivesBroadcastNotificationsOn() public function receivesBroadcastNotificationsOn()
{ {
return 'App.User.'.$this->id; return 'App.User.'.$this->id;