forked from GNUsocial/gnu-social
[ENTITY][GSActor] Fix getAvatarUrl method
This commit is contained in:
parent
5fbc079c55
commit
55c4ad40cd
@ -45,7 +45,7 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
|
|
||||||
class Network extends Controller
|
class Network extends Controller
|
||||||
{
|
{
|
||||||
// Can't have constanst inside herestring
|
// Can't have constants inside herestring
|
||||||
private $public_scope = VisibilityScope::PUBLIC;
|
private $public_scope = VisibilityScope::PUBLIC;
|
||||||
private $instance_scope = VisibilityScope::PUBLIC | VisibilityScope::SITE;
|
private $instance_scope = VisibilityScope::PUBLIC | VisibilityScope::SITE;
|
||||||
private $message_scope = VisibilityScope::MESSAGE;
|
private $message_scope = VisibilityScope::MESSAGE;
|
||||||
|
@ -208,7 +208,7 @@ class GSActor extends Entity
|
|||||||
public function getAvatarUrl()
|
public function getAvatarUrl()
|
||||||
{
|
{
|
||||||
$url = null;
|
$url = null;
|
||||||
Event::handle('get_avatar_url', [$this->getNickname(), &$url]);
|
Event::handle('GetAvatarUrl', [$this->getId(), &$url]);
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user