[ENTITY][GSActor] Fix getAvatarUrl method

This commit is contained in:
Diogo Peralta Cordeiro 2021-04-29 17:42:06 +01:00 committed by Hugo Sales
parent cbd383f92d
commit 88e5cec8fc
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ use Symfony\Component\HttpFoundation\Request;
class Network extends Controller
{
// Can't have constanst inside herestring
// Can't have constants inside herestring
private $public_scope = VisibilityScope::PUBLIC;
private $instance_scope = VisibilityScope::PUBLIC | VisibilityScope::SITE;
private $message_scope = VisibilityScope::MESSAGE;

View File

@ -208,7 +208,7 @@ class GSActor extends Entity
public function getAvatarUrl()
{
$url = null;
Event::handle('get_avatar_url', [$this->getNickname(), &$url]);
Event::handle('GetAvatarUrl', [$this->getId(), &$url]);
return $url;
}