]> git.mxchange.org Git - friendica.git/commitdiff
Return early if system.max_author_posts_community_page isn't set in Conversation...
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 Jan 2025 18:55:58 +0000 (13:55 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 Jan 2025 22:52:35 +0000 (17:52 -0500)
src/Module/Conversation/Timeline.php

index 3e07820bec682d94947b100019d840b26829259b..4c402dd526551bcb9cd61e02a251e7ab5172e1e4 100644 (file)
@@ -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(),