Remove nickname

This commit is contained in:
2026-01-08 16:13:43 +01:00
parent e100f3bf23
commit b1c48830c4
12 changed files with 20 additions and 50 deletions

View File

@@ -29,7 +29,6 @@ class User extends Authenticatable
'is_banned',
// Discord
'discord_id',
'discord_name',
'discord_avatar',
];
@@ -60,26 +59,9 @@ class User extends Authenticatable
'tag_blacklist' => 'array',
// Discord
'discord_id' => 'integer',
'discord_name' => 'string',
'discord_avatar' => 'string',
];
/**
* Get the user name
*/
public function getUserName(): string
{
if (!$this->discord_name) {
return $this->name;
}
if ($this->discord_name == $this->name)
{
return $this->name;
}
return "{$this->name} ({$this->discord_name})";
}
/**
* Has Many Playlists.