$this->parseRequest($request);
- $profile_uid = intval($request['p']);
-
$o = '';
- if (empty($request['force'])) {
+ if (!$this->update && !$this->force) {
System::htmlUpdateExit($o);
}
- $o = $this->conversation->render($this->getItems(), Conversation::MODE_NETWORK, $profile_uid, false, $this->getOrder(), $this->session->getLocalUserId());
+ if ($this->timeline->isChannel($this->selectedTab, $this->session->getLocalUserId())) {
+ $items = $this->getChannelItems();
+ } elseif ($this->timeline->isCommunity($this->selectedTab)) {
+ $items = $this->getCommunityItems();
+ } else {
+ $items = $this->getItems();
+ }
+
+ $o = $this->conversation->render($items, Conversation::MODE_NETWORK, true, false, $this->getOrder(), $this->session->getLocalUserId());
System::htmlUpdateExit($o);
}