Remove uri to GetFollowRequests
parent
af2ce2c3b1
commit
280982f034
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue