API-Route to new global variables

This commit is contained in:
2026-02-05 09:18:24 +01:00
parent e9ae850002
commit 6fc65e195c
8 changed files with 108 additions and 65 deletions

View File

@@ -101,6 +101,6 @@ class User extends Authenticatable
}
public function getNicename() : string {
return $this->nickname !== '' ? $this->nickname : $this->firstname;
return $this->nickname ?? $this->firstname;
}
}