mirror of
https://github.com/friendica/friendica
synced 2025-03-12 13:08:25 +00:00
Merge pull request #14738 from MrPetovan/bug/14689-community-empty
Return early if system.max_author_posts_community_page isn't set in Conversation\Timeline->getCommunityItems
This commit is contained in:
commit
fe462398ad
1 changed files with 23 additions and 20 deletions
|
@ -691,13 +691,16 @@ class Timeline extends BaseModule
|
||||||
$items = $this->selectItems();
|
$items = $this->selectItems();
|
||||||
$key = '';
|
$key = '';
|
||||||
|
|
||||||
|
$maxpostperauthor = 0;
|
||||||
if ($this->selectedTab == Community::LOCAL) {
|
if ($this->selectedTab == Community::LOCAL) {
|
||||||
$maxpostperauthor = (int)$this->config->get('system', 'max_author_posts_community_page');
|
$maxpostperauthor = (int)$this->config->get('system', 'max_author_posts_community_page');
|
||||||
$key = 'author-id';
|
$key = 'author-id';
|
||||||
} elseif ($this->selectedTab == Community::GLOBAL) {
|
} elseif ($this->selectedTab == Community::GLOBAL) {
|
||||||
$maxpostperauthor = (int)$this->config->get('system', 'max_server_posts_community_page');
|
$maxpostperauthor = (int)$this->config->get('system', 'max_server_posts_community_page');
|
||||||
$key = 'author-gsid';
|
$key = 'author-gsid';
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if ($maxpostperauthor === 0) {
|
||||||
$this->setItemsSeenByCondition([
|
$this->setItemsSeenByCondition([
|
||||||
'unseen' => true,
|
'unseen' => true,
|
||||||
'uid' => $this->session->getLocalUserId(),
|
'uid' => $this->session->getLocalUserId(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue