From: Michael Date: Sun, 17 Sep 2023 05:57:44 +0000 (+0000) Subject: Use class variables X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e81c911b4958f9cced860ce00e04358a58ee66af;p=friendica.git Use class variables --- diff --git a/src/Module/Update/Channel.php b/src/Module/Update/Channel.php index a9d7ce751f..223666739b 100644 --- a/src/Module/Update/Channel.php +++ b/src/Module/Update/Channel.php @@ -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 { diff --git a/src/Module/Update/Community.php b/src/Module/Update/Community.php index 88467f252a..31f75d24e2 100644 --- a/src/Module/Update/Community.php +++ b/src/Module/Update/Community.php @@ -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()); } diff --git a/src/Module/Update/Network.php b/src/Module/Update/Network.php index ebd7211af0..5f7f234e04 100644 --- a/src/Module/Update/Network.php +++ b/src/Module/Update/Network.php @@ -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); }