[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user