From c3ed9ba24adf69133a39cd23fa32b951a9b81d05 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Aug 2024 19:31:42 +0000 Subject: [PATCH] Fix restricted access to public timeline --- src/Module/Api/Mastodon/Timelines/PublicTimeline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Timelines/PublicTimeline.php b/src/Module/Api/Mastodon/Timelines/PublicTimeline.php index 106fb3038f..21b76e72fd 100644 --- a/src/Module/Api/Mastodon/Timelines/PublicTimeline.php +++ b/src/Module/Api/Mastodon/Timelines/PublicTimeline.php @@ -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]); } }