*/
class ConversationAction extends Action
{
- var $id = null;
- var $page = null;
- var $notices = null;
+ var $id = null;
+ var $page = null;
+ var $notices = null;
+ var $userProfile = null;
const MAX_NOTICES = 500;
$cur = common_current_user();
if (empty($cur)) {
- $profile = null;
+ $this->userProfile = null;
} else {
- $profile = $cur->getProfile();
+ $this->userProfile = $cur->getProfile();
}
- $stream = new ConversationNoticeStream($this->id, $profile);
+ $stream = new ConversationNoticeStream($this->id, $this->userProfile);
- $this->notices = $stream->getNotices(0, self::MAX_NOTICES, null, null);
+ $this->notices = $stream->getNotices(0, self::MAX_NOTICES);
return true;
}
*/
function showContent()
{
- $tnl = new ThreadedNoticeList($this->notices, $this);
+ $tnl = new FullThreadedNoticeList($this->notices, $this, $this->userProfile);
$cnt = $tnl->show();
}