From ef8461733b6631f1dfae6fa370386b0b913a3de3 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 26 Jan 2024 13:51:20 +0000 Subject: [PATCH] The "nosharer" widget is added to the network --- src/Module/Conversation/Network.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index 76d7704b66..5b764f74d7 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -25,6 +25,7 @@ use Friendica\App; use Friendica\App\Mode; use Friendica\Content\BoundariesPager; use Friendica\Content\Conversation; +use Friendica\Content\Conversation\Entity\Channel; use Friendica\Content\Conversation\Entity\Network as NetworkEntity; use Friendica\Content\Conversation\Factory\Timeline as TimelineFactory; use Friendica\Content\Conversation\Repository\UserDefinedChannel; @@ -142,6 +143,11 @@ class Network extends Timeline $this->page['aside'] .= Widget\SavedSearches::getHTML($this->args->getQueryString()); $this->page['aside'] .= Widget::fileAs('filed', ''); + if (($this->channel->isTimeline($this->selectedTab) || $this->userDefinedChannel->isTimeline($this->selectedTab, $this->session->getLocalUserId())) && + !in_array($this->selectedTab, [Channel::FOLLOWERS, Channel::FORYOU, Channel::DISCOVER])) { + $this->page['aside'] .= $this->getNoSharerWidget('network'); + } + if (Feature::isEnabled($this->session->getLocalUserId(), 'trending_tags')) { $this->page['aside'] .= TrendingTags::getHTML($this->selectedTab); }