Merge pull request #14356 from annando/fix-public

Fix restricted access to public timeline
This commit is contained in:
Tobias Diekershoff 2024-08-14 07:47:22 +02:00 committed by GitHub
commit 602cb3b35b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,11 +141,11 @@ class PublicTimeline extends BaseApi
private function localAllowed(): bool
{
return in_array($this->config->get('system', 'community_page_style'), [Community::LOCAL, Community::LOCAL_AND_GLOBAL]);
return in_array($this->config->get('system', 'community_page_style'), [Community::LOCAL, Community::LOCAL_AND_GLOBAL, Community::DISABLED_VISITOR]);
}
private function globalAllowed(): bool
{
return in_array($this->config->get('system', 'community_page_style'), [Community::GLOBAL, Community::LOCAL_AND_GLOBAL]);
return in_array($this->config->get('system', 'community_page_style'), [Community::GLOBAL, Community::LOCAL_AND_GLOBAL, Community::DISABLED_VISITOR]);
}
}