exit(1);
}
-require_once INSTALLDIR . '/lib/apibareauth.php';
-
/**
* Returns the most recent notices (default 20) posted by the target user.
* This is the equivalent of 'You and friends' page accessed via Web.
{
$notices = array();
- $stream = new InboxNoticeStream($this->user);
+ $profile = null;
+
+ if (isset($this->auth_user)) {
+ $profile = $this->auth_user->getProfile();
+ }
+
+ $stream = new InboxNoticeStream($this->user, $profile);
$notice = $stream->getNotices(($this->page-1) * $this->count,
$this->count,