]> git.mxchange.org Git - friendica.git/commitdiff
Fix restricted access to public timeline
authorMichael <heluecht@pirati.ca>
Tue, 13 Aug 2024 19:31:42 +0000 (19:31 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Aug 2024 19:31:42 +0000 (19:31 +0000)
src/Module/Api/Mastodon/Timelines/PublicTimeline.php

index 106fb3038f7b74c8cb2e7d57fb3e716d17a23069..21b76e72fd1c5fd7cfa623a9bc6938e63948d1c0 100644 (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]);
        }
 }