API-Route to new global variables
This commit is contained in:
1 parent
e9ae850002
commit
6fc65e195c
8 files changed
+108
-65
No files matched your search
+1
-1
@@ -101,6 +101,6 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
public function getNicename() : string {
|
||||
return $this->nickname !== '' ? $this->nickname : $this->firstname;
|
||||
return $this->nickname ?? $this->firstname;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user