]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Update/Network.php
Merge remote-tracking branch 'upstream/develop' into user-defined-channels
[friendica.git] / src / Module / Update / Network.php
index ebd7211af089693617bb39d0b3eba9d7a80f1bac..612d4079c8cb73654e9ab9b518a3e4c2c248af85 100644 (file)
@@ -35,15 +35,13 @@ class Network extends NetworkModule
 
                $this->parseRequest($request);
 
-               $profile_uid = intval($request['p']);
-
                $o = '';
 
-               if (empty($request['force'])) {
+               if (!$this->update && !$this->force) {
                        System::htmlUpdateExit($o);
                }
 
-               if ($this->timeline->isChannel($this->selectedTab)) {
+               if ($this->timeline->isChannel($this->selectedTab, $this->session->getLocalUserId())) {
                        $items = $this->getChannelItems();
                } elseif ($this->timeline->isCommunity($this->selectedTab)) {
                        $items = $this->getCommunityItems();
@@ -51,7 +49,7 @@ class Network extends NetworkModule
                        $items = $this->getItems();
                }
 
-               $o = $this->conversation->render($items, Conversation::MODE_NETWORK, $profile_uid, false, $this->getOrder(), $this->session->getLocalUserId());
+               $o = $this->conversation->render($items, Conversation::MODE_NETWORK, true, false, $this->getOrder(), $this->session->getLocalUserId());
 
                System::htmlUpdateExit($o);
        }