forked from GNUsocial/gnu-social
quick fix for when there is no $cur defined
This commit is contained in:
parent
509f31af0e
commit
483b2d3d29
@ -64,7 +64,10 @@ class AtomUserNoticeFeed extends AtomNoticeFeed
|
|||||||
|
|
||||||
$ao = $profile->asActivityObject();
|
$ao = $profile->asActivityObject();
|
||||||
|
|
||||||
array_push($ao->extra, $profile->profileInfo($cur->getProfile()));
|
// quick fix until we start using Profile everywhere instead of User
|
||||||
|
$scoped = !is_null($cur) ? $cur->getProfile() : null;
|
||||||
|
|
||||||
|
array_push($ao->extra, $profile->profileInfo($scoped));
|
||||||
|
|
||||||
$this->addAuthorRaw($ao->asString('author'));
|
$this->addAuthorRaw($ao->asString('author'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user