diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-19 01:29:39 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-05-19 01:31:02 -0600 |
commit | 3eb2af2532a6a38be3582c629f2df866830eb0dc (patch) | |
tree | 403d29dfae34a39e6689f06f1373da57d7c59e2f /cmd/generate/src_mastodon.go | |
parent | d38db6bf77fd6c315c7da28f6ffad4e0b84a922c (diff) |
cmd/generate: Allow specifying HTTP headers
Diffstat (limited to 'cmd/generate/src_mastodon.go')
-rw-r--r-- | cmd/generate/src_mastodon.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/generate/src_mastodon.go b/cmd/generate/src_mastodon.go index b4b54a8..52dcfa4 100644 --- a/cmd/generate/src_mastodon.go +++ b/cmd/generate/src_mastodon.go @@ -19,12 +19,12 @@ func ReadStandups(server, username string) ([]*MastodonStatus, error) { var account struct { ID string `json:"id"` } - if err := httpGetJSON(server+"/api/v1/accounts/lookup?acct="+username, &account); err != nil { + if err := httpGetJSON(server+"/api/v1/accounts/lookup?acct="+username, nil, &account); err != nil { return nil, err } var statuses []*MastodonStatus - if err := httpGetPaginatedJSON(server+"/api/v1/accounts/"+account.ID+"/statuses", &statuses, func(_ int) url.Values { + if err := httpGetPaginatedJSON(server+"/api/v1/accounts/"+account.ID+"/statuses", nil, &statuses, func(_ int) url.Values { params := make(url.Values) params.Set("tagged", "DailyStandUp") params.Set("exclude_reblogs", "true") |