diff options
author | r <r@freesoftwareextremist.com> | 2022-09-23 17:22:54 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2022-09-23 17:22:54 +0000 |
commit | f55595ddb63bd8afb4c85945b82aa1f174050e6b (patch) | |
tree | 3e9f909097c026b065365846ca8143295097a09f /mastodon/lists.go | |
parent | b8c0133bcd5e7f1d4063ad992949cc19d18e7aad (diff) | |
parent | 68698a9e1afce43ef807d6b5f892ca1c0f905b8a (diff) | |
download | bloat-f55595ddb63bd8afb4c85945b82aa1f174050e6b.tar.gz bloat-f55595ddb63bd8afb4c85945b82aa1f174050e6b.zip |
Merge branch 'master' into absolute_fluorideabsolute_fluoride
Diffstat (limited to 'mastodon/lists.go')
-rw-r--r-- | mastodon/lists.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/lists.go b/mastodon/lists.go index d323b79..1b76bdc 100644 --- a/mastodon/lists.go +++ b/mastodon/lists.go @@ -90,7 +90,7 @@ func (c *Client) DeleteList(ctx context.Context, id string) error { func (c *Client) AddToList(ctx context.Context, list string, accounts ...string) error { params := url.Values{} for _, acct := range accounts { - params.Add("account_ids", string(acct)) + params.Add("account_ids[]", string(acct)) } return c.doAPI(ctx, http.MethodPost, fmt.Sprintf("/api/v1/lists/%s/accounts", url.PathEscape(string(list))), params, nil, nil) @@ -100,7 +100,7 @@ func (c *Client) AddToList(ctx context.Context, list string, accounts ...string) func (c *Client) RemoveFromList(ctx context.Context, list string, accounts ...string) error { params := url.Values{} for _, acct := range accounts { - params.Add("account_ids", string(acct)) + params.Add("account_ids[]", string(acct)) } return c.doAPI(ctx, http.MethodDelete, fmt.Sprintf("/api/v1/lists/%s/accounts", url.PathEscape(string(list))), params, nil, nil) |