mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-15 03:38:50 +01:00
Mark usernames with @.
This commit is contained in:
@@ -513,7 +513,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||
public function getFullName(bool $including_username = false): string
|
||||
{
|
||||
if ($including_username) {
|
||||
return sprintf('%s %s (%s)', $this->getFirstName(), $this->getLastName(), $this->getName());
|
||||
return sprintf('%s %s (@%s)', $this->getFirstName(), $this->getLastName(), $this->getName());
|
||||
}
|
||||
|
||||
return sprintf('%s %s', $this->getFirstName(), $this->getLastName());
|
||||
|
||||
Reference in New Issue
Block a user