From 403a4684e5d125235e6b3550065e4cba46036541 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 26 Jan 2025 13:55:58 -0500 Subject: [PATCH] Return early if system.max_author_posts_community_page isn't set in Conversation\Timeline->getCommunityItems --- src/Module/Conversation/Timeline.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(), -- 2.39.5