Fix restricted access to public timeline

pull/14356/head
Michael 2024-08-13 19:31:42 +00:00
rodzic 241d056473
commit c3ed9ba24a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -141,11 +141,11 @@ class PublicTimeline extends BaseApi
private function localAllowed(): bool 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 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]);
} }
} }