diff --git a/lib/atomusernoticefeed.php b/lib/atomusernoticefeed.php index 56e97880b0..d7f9b3d233 100644 --- a/lib/atomusernoticefeed.php +++ b/lib/atomusernoticefeed.php @@ -64,7 +64,10 @@ class AtomUserNoticeFeed extends AtomNoticeFeed $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')); }