From e23d47f8151fc580c39ec1d511ef740e03e53dc9 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 9 Nov 2022 13:59:04 -0500 Subject: [PATCH] switch to oauth in subredddit about --- internal/reddit/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reddit/client.go b/internal/reddit/client.go index c3cd947..a2cf40c 100644 --- a/internal/reddit/client.go +++ b/internal/reddit/client.go @@ -259,7 +259,7 @@ func (rc *Client) SubredditNew(ctx context.Context, subreddit string, opts ...Re } func (rc *Client) SubredditAbout(ctx context.Context, subreddit string, opts ...RequestOption) (*SubredditResponse, error) { - url := fmt.Sprintf("https://www.reddit.com/r/%s/about.json", subreddit) + url := fmt.Sprintf("https://oauth.reddit.com/r/%s/about.json", subreddit) opts = append(rc.defaultOpts, opts...) opts = append(opts, []RequestOption{ WithMethod("GET"),