mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue