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 --- internal/db/timeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/timeline.go') diff --git a/internal/db/timeline.go b/internal/db/timeline.go index 58b5b3a21..27f89d997 100644 --- a/internal/db/timeline.go +++ b/internal/db/timeline.go @@ -35,7 +35,7 @@ type Timeline interface { // It will use the given filters and try to return as many statuses as possible up to the limit. // // Statuses should be returned in descending order of when they were created (newest first). - GetPublicTimeline(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, local bool) ([]*gtsmodel.Status, Error) + GetPublicTimeline(ctx context.Context, maxID string, sinceID string, minID string, limit int, local bool) ([]*gtsmodel.Status, Error) // GetFavedTimeline fetches the account's FAVED timeline -- ie., posts and replies that the requesting account has faved. // It will use the given filters and try to return as many statuses as possible up to the limit. -- cgit v1.2.3