From 3b1c9adb6d28b8d4e994cb81bdc170aeb8117255 Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 21 Nov 2022 09:29:27 +0100 Subject: [PATCH] fix report API --- report.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/report.go b/report.go index d68a1b6..8966c47 100644 --- a/report.go +++ b/report.go @@ -19,11 +19,11 @@ func GetReports() ([]*Report, error) { return reports, nil } -func ReportAccount(accountID ID, ids []ID, comment string) (*Report, error) { +func (a *Account) Report(statuses []*Status, comment string) (*Report, error) { params := url.Values{} - params.Set("account_id", string(accountID)) - for _, id := range ids { - params.Add("status_ids[]", string(id)) + params.Set("account_id", a.GetID()) + for _, status := range statuses { + params.Add("status_ids[]", status.GetID()) } params.Set("comment", comment) var report Report