var $page = null;
var $userProfile = null;
var $notice = null;
- var $mode = 'conversation';
/**
* Is this page read-only?
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
- $this->mode = $this->trimmed('mode', 'conversation');
-
$this->userProfile = Profile::current();
- if ($this->mode == 'stream') {
+ $user = common_current_user();
+
+ if (!empty($user) && $user->useStreamMode()) {
$stream = new GroupNoticeStream($this->group, $this->userProfile);
} else {
$stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile);
*/
function showGroupNotices()
{
- if ($this->mode == 'stream') {
+ $user = common_current_user();
+
+ if (!empty($user) && $user->useStreamMode()) {
$nl = new NoticeList($this->notice, $this);
} else {
$nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);