diff options
author | r <r@freesoftwareextremist.com> | 2022-02-11 11:18:02 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2022-02-11 11:49:23 +0000 |
commit | c390a0c32720f6afe852bc7a3a3f64c3afe9e401 (patch) | |
tree | 57ac4a30f8fe45edf0369eaa4c5609ffb74315eb /mastodon/status.go | |
parent | c2f237e9019a4fb31cd7d969bf59670c144592c8 (diff) | |
download | bloat-c390a0c32720f6afe852bc7a3a3f64c3afe9e401.tar.gz bloat-c390a0c32720f6afe852bc7a3a3f64c3afe9e401.zip |
Add lists
Diffstat (limited to 'mastodon/status.go')
-rw-r--r-- | mastodon/status.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mastodon/status.go b/mastodon/status.go index 8b148b3..2fae6ee 100644 --- a/mastodon/status.go +++ b/mastodon/status.go @@ -301,7 +301,7 @@ func (c *Client) DeleteStatus(ctx context.Context, id string) error { } // Search search content with query. -func (c *Client) Search(ctx context.Context, q string, qType string, limit int, resolve bool, offset int, accountID string) (*Results, error) { +func (c *Client) Search(ctx context.Context, q string, qType string, limit int, resolve bool, offset int, accountID string, following bool) (*Results, error) { var results Results params := url.Values{} params.Set("q", q) @@ -309,6 +309,7 @@ func (c *Client) Search(ctx context.Context, q string, qType string, limit int, params.Set("limit", fmt.Sprint(limit)) params.Set("resolve", fmt.Sprint(resolve)) params.Set("offset", fmt.Sprint(offset)) + params.Set("following", fmt.Sprint(following)) if len(accountID) > 0 { params.Set("account_id", accountID) } |