mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 19:37:41 +00:00
switch subreddit posts url
This commit is contained in:
parent
fc449fd7cf
commit
038db61798
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ func (rc *Client) request(ctx context.Context, r *Request, errmap map[int]error,
|
|||
}
|
||||
|
||||
func (rc *Client) subredditPosts(ctx context.Context, subreddit string, sort string, opts ...RequestOption) (*ListingResponse, error) {
|
||||
url := fmt.Sprintf("https://www.reddit.com/r/%s/%s.json", subreddit, sort)
|
||||
url := fmt.Sprintf("https://oauth.reddit.com/r/%s/%s.json", subreddit, sort)
|
||||
opts = append(rc.defaultOpts, opts...)
|
||||
opts = append(opts, []RequestOption{
|
||||
WithMethod("GET"),
|
||||
|
|
Loading…
Reference in a new issue