forked from GNUsocial/gnu-social
Cool bug! Technically good PHP syntax
This commit is contained in:
parent
2df3bbc80b
commit
ed45df045f
@ -149,7 +149,6 @@ class Ostatus_profile extends Memcached_DataObject
|
||||
function asActivityNoun($element)
|
||||
{
|
||||
$xs = new XMLStringer(true);
|
||||
|
||||
$avatarHref = Avatar::defaultImage(AVATAR_PROFILE_SIZE);
|
||||
$avatarType = 'image/png';
|
||||
if ($this->isGroup()) {
|
||||
@ -173,7 +172,7 @@ class Ostatus_profile extends Memcached_DataObject
|
||||
$self = $this->localProfile();
|
||||
$avatar = $self->getAvatar(AVATAR_PROFILE_SIZE);
|
||||
if ($avatar) {
|
||||
$avatarHref = $avatar->
|
||||
$avatarHref = $avatar->url;
|
||||
$avatarType = $avatar->mediatype;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user