[ENTITY][GSActor] Fix getAvatarUrl method

This commit is contained in:
Diogo Peralta Cordeiro 2021-04-29 17:42:06 +01:00
parent 5fbc079c55
commit 55c4ad40cd
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;
}