mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-03 05:34:14 +00:00
Update User model, prepare for websockets
This commit is contained in:
parent
d0d4def3ec
commit
2202fc416a
1 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,8 @@ class User extends Authenticatable
|
||||||
protected $hidden = [
|
protected $hidden = [
|
||||||
'email', 'password', 'is_admin', 'remember_token',
|
'email', 'password', 'is_admin', 'remember_token',
|
||||||
'email_verified_at', '2fa_enabled', '2fa_secret',
|
'email_verified_at', '2fa_enabled', '2fa_secret',
|
||||||
'2fa_backup_codes', '2fa_setup_at',
|
'2fa_backup_codes', '2fa_setup_at', 'deleted_at',
|
||||||
|
'updated_at'
|
||||||
];
|
];
|
||||||
|
|
||||||
public function profile()
|
public function profile()
|
||||||
|
@ -52,4 +53,9 @@ class User extends Authenticatable
|
||||||
{
|
{
|
||||||
return $this->hasOne(UserSetting::class);
|
return $this->hasOne(UserSetting::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function receivesBroadcastNotificationsOn()
|
||||||
|
{
|
||||||
|
return 'App.User.'.$this->id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue