From d120743e8bee74bbb6381a6ec017d7fa62b3f13e Mon Sep 17 00:00:00 2001 From: Rob Sargant Date: Mon, 14 Nov 2022 09:30:01 +0000 Subject: [feature] add instance-expose-public-timeline flag (#1039) * Add instance-expose-public-timeline flag Adds a config flag that allows unauthenticated access to /api/v1/timelines/public. Defaults to false to replicate existing behaviour. * Update structure following review * Add comment * Fix linting --- example/config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example') diff --git a/example/config.yaml b/example/config.yaml index bf9838d84..e0ec64961 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -192,6 +192,13 @@ instance-expose-peers: false # Default: false instance-expose-suspended: false +# Bool. Allow unauthenticated users to make queries to /api/v1/timelines/public in order +# to see a list of public posts on this server. Even if set to 'false', then authenticated +# users (members of the instance) will still be able to query the endpoint. +# Options: [true, false] +# Default: false +instance-expose-public-timeline: false + # Bool. This flag tweaks whether GoToSocial will deliver ActivityPub messages # to the shared inbox of a recipient, if one is available, instead of delivering # each message to each actor who should receive a message individually. -- cgit v1.2.3