]> git.mxchange.org Git - friendica.git/commitdiff
Use class variables
authorMichael <heluecht@pirati.ca>
Sun, 17 Sep 2023 05:57:44 +0000 (05:57 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 17 Sep 2023 05:57:44 +0000 (05:57 +0000)
src/Module/Update/Channel.php
src/Module/Update/Community.php
src/Module/Update/Network.php

index a9d7ce751f81377123e217d031e825ac74a4a023..223666739b54a8d442f609d849a160b878e965f3 100644 (file)
@@ -37,7 +37,7 @@ class Channel extends ChannelModule
                $this->parseRequest($request);
 
                $o = '';
-               if (!empty($request['force'])) {
+               if ($this->force) {
                        if ($this->timeline->isChannel($this->selectedTab)) {
                                $items = $this->getChannelItems();
                        } else {
index 88467f252a05b2a85ba2993017a443f148863c2d..31f75d24e2e35eff171915114c25d3ec91315bfb 100644 (file)
@@ -39,7 +39,7 @@ class Community extends CommunityModule
                $this->parseRequest($request);
 
                $o = '';
-               if (!empty($request['force'])) {
+               if ($this->force) {
                        $o = DI::conversation()->render($this->getCommunityItems(), Conversation::MODE_COMMUNITY, true, false, 'commented', DI::userSession()->getLocalUserId());
                }
 
index ebd7211af089693617bb39d0b3eba9d7a80f1bac..5f7f234e046506b670e488a030e4b5e74a45848b 100644 (file)
@@ -35,11 +35,9 @@ class Network extends NetworkModule
 
                $this->parseRequest($request);
 
-               $profile_uid = intval($request['p']);
-
                $o = '';
 
-               if (empty($request['force'])) {
+               if (!$this->force) {
                        System::htmlUpdateExit($o);
                }
 
@@ -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);
        }