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