diff --git a/filter.go b/filter.go index 265993f..024e599 100644 --- a/filter.go +++ b/filter.go @@ -18,8 +18,8 @@ type Filter struct { Description string `json:"description"` HiddenTagIds []int64 `json:"hidden_tag_ids"` SpoileredTagIds []int64 `json:"spoilered_tag_ids"` - SpoileredTags string `json:"spoilered_tags"` - HiddenTags string `json:"hidden_tags"` + SpoileredTags []string `json:"spoilered_tags"` + HiddenTags []string `json:"hidden_tags"` HiddenComplex string `json:"hidden_complex"` SpoileredComplex string `json:"spoilered_complex"` Public bool `json:"public"` diff --git a/image.go b/image.go index 329682a..7d91610 100644 --- a/image.go +++ b/image.go @@ -29,7 +29,7 @@ type Image struct { Faves int `json:"faves"` CommentCount int `json:"comment_count"` Tags string `json:"tags"` - TagIds []string `json:"tag_ids"` + TagIds []int64 `json:"tag_ids"` Width int `json:"width"` Height int `json:"height"` AspectRatio float64 `json:"aspect_ratio"` diff --git a/image_test.go b/image_test.go index ec650eb..af4a34e 100644 --- a/image_test.go +++ b/image_test.go @@ -6,14 +6,13 @@ func TestGetImage(t *testing.T) { ctx, myC := setup() const imageID = 912673 // https://derpibooru.org/912673 - const imageIDStr = "912673" i, _, err := myC.GetImage(ctx, imageID) if err != nil { t.Fatal(err) } - if i.ID != imageIDStr { - t.Fatalf("ID is wrong: expected %v, got %s", imageID, i.ID) + if i.ID != imageID { + t.Fatalf("ID is wrong: expected %v, got %d", imageID, i.ID) } } diff --git a/user_test.go b/user_test.go index df08e7f..613074e 100644 --- a/user_test.go +++ b/user_test.go @@ -5,7 +5,7 @@ import "testing" func TestGetUserInformation(t *testing.T) { ctx, myC := setup() - const username = "Xena" // https://derpibooru.org/profiles/Xena - Creator of this library + const username = "Carcer" // https://derpibooru.org/profiles/Carcer - one of the admins u, err := myC.GetUser(ctx, username) if err != nil {