From 743423432e1bf772ed0049b76d5d8d8ad9f11d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 6 Feb 2020 19:27:24 +0100 Subject: [PATCH] Mark usernames with @. --- src/Entity/UserSystem/User.php | 2 +- templates/_navbar.html.twig | 2 +- tests/Entity/UserSystem/UserTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/UserSystem/User.php b/src/Entity/UserSystem/User.php index 66a6218c..926fc8b4 100644 --- a/src/Entity/UserSystem/User.php +++ b/src/Entity/UserSystem/User.php @@ -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()); diff --git a/templates/_navbar.html.twig b/templates/_navbar.html.twig index 3d8e8b0c..83d78e9b 100644 --- a/templates/_navbar.html.twig +++ b/templates/_navbar.html.twig @@ -33,7 +33,7 @@ {% if app.user %}{% else %}{% endif %}