From 280982f0342a735f91ebe30c38d5223389a865b6 Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Sat, 15 Apr 2017 04:04:34 +0900 Subject: [PATCH] Remove uri to GetFollowRequests --- accounts.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/accounts.go b/accounts.go index 4504758..3de8000 100644 --- a/accounts.go +++ b/accounts.go @@ -187,12 +187,9 @@ func (c *Client) FollowRemoteUser(uri string) (*Account, error) { } // GetFollowRequests return follow-requests. -func (c *Client) GetFollowRequests(uri string) ([]*Account, error) { - params := url.Values{} - params.Set("uri", uri) - +func (c *Client) GetFollowRequests() ([]*Account, error) { var accounts []*Account - err := c.doAPI(http.MethodGet, "/api/v1/follow_requests", params, &accounts) + err := c.doAPI(http.MethodGet, "/api/v1/follow_requests", nil, &accounts) if err != nil { return nil, err }