[TWIG][Cards] Fullname is now displayed as the note author, nickname as an identification.

[CONTROLLER][Security] Fullname is set on resgistration to enable it to be shown by default in notes.
[CONTROLLER][UserPanel] Fullname extra step added.
[CSS] Fullname and nickname representation work.
This commit is contained in:
2021-10-26 14:47:28 +01:00
parent 51c984849f
commit 3e2fefa8af
7 changed files with 36 additions and 12 deletions

View File

@@ -241,6 +241,11 @@ class Note extends Entity
return Actor::getNicknameById($this->actor_id);
}
public function getActorFullname(): string
{
return Actor::getFullnameById($this->actor_id);
}
public function getActorAvatarUrl(string $size = 'full'): string
{
return Avatar::getAvatarUrl($this->getActorId(), $size);