Remove uri to GetFollowRequests

This commit is contained in:
178inaba 2017-04-15 04:04:34 +09:00
parent af2ce2c3b1
commit 280982f034

View File

@ -187,12 +187,9 @@ func (c *Client) FollowRemoteUser(uri string) (*Account, error) {
} }
// GetFollowRequests return follow-requests. // GetFollowRequests return follow-requests.
func (c *Client) GetFollowRequests(uri string) ([]*Account, error) { func (c *Client) GetFollowRequests() ([]*Account, error) {
params := url.Values{}
params.Set("uri", uri)
var accounts []*Account 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 { if err != nil {
return nil, err return nil, err
} }