From: Hypolite Petovan Date: Sun, 26 Jan 2025 18:55:58 +0000 (-0500) Subject: Return early if system.max_author_posts_community_page isn't set in Conversation... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=403a4684e5d125235e6b3550065e4cba46036541;p=friendica.git Return early if system.max_author_posts_community_page isn't set in Conversation\Timeline->getCommunityItems --- diff --git a/src/Module/Conversation/Timeline.php b/src/Module/Conversation/Timeline.php index 3e07820bec..4c402dd526 100644 --- a/src/Module/Conversation/Timeline.php +++ b/src/Module/Conversation/Timeline.php @@ -691,13 +691,16 @@ class Timeline extends BaseModule $items = $this->selectItems(); $key = ''; + $maxpostperauthor = 0; if ($this->selectedTab == Community::LOCAL) { $maxpostperauthor = (int)$this->config->get('system', 'max_author_posts_community_page'); $key = 'author-id'; } elseif ($this->selectedTab == Community::GLOBAL) { $maxpostperauthor = (int)$this->config->get('system', 'max_server_posts_community_page'); $key = 'author-gsid'; - } else { + } + + if ($maxpostperauthor === 0) { $this->setItemsSeenByCondition([ 'unseen' => true, 'uid' => $this->session->getLocalUserId(),