From 636b33ad1cf5d9a310af4748631abe336f0f26b3 Mon Sep 17 00:00:00 2001 From: buckket Date: Tue, 14 May 2019 04:21:14 +0200 Subject: [PATCH] Renamed Source to AccountSource --- accounts.go | 6 +++--- accounts_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounts.go b/accounts.go index 76525aa..d6210cc 100644 --- a/accounts.go +++ b/accounts.go @@ -39,8 +39,8 @@ type Field struct { VerifiedAt time.Time `json:"verified_at"` } -// Source is a Mastodon account profile field -type Source struct { +// AccountSource is a Mastodon account profile field. +type AccountSource struct { Privacy string `json:"privacy"` Sensitive *bool `json:"sensitive"` Language string `json:"language"` @@ -76,7 +76,7 @@ type Profile struct { Note *string Locked *bool Fields *[]Field - Source *Source + Source *AccountSource // Set the base64 encoded character string of the image. Avatar string diff --git a/accounts_test.go b/accounts_test.go index b59968f..781e3f2 100644 --- a/accounts_test.go +++ b/accounts_test.go @@ -96,7 +96,7 @@ func TestAccountUpdate(t *testing.T) { } tbool := true fields := []Field{{"foo", "bar", time.Time{}}, {"dum", "baz", time.Time{}}} - source := Source{Language: "de", Privacy: "public", Sensitive: &tbool} + source := AccountSource{Language: "de", Privacy: "public", Sensitive: &tbool} a, err := client.AccountUpdate(context.Background(), &Profile{ DisplayName: String("display_name"), Note: String("note"),