diff options
author | 2022-11-13 20:38:01 +0000 | |
---|---|---|
committer | 2022-11-13 21:38:01 +0100 | |
commit | 96f11e757cd28ad3e6ce6ad243ee8bd459d3b124 (patch) | |
tree | d05b444b9177b7514b59efd082ecf60507ae5bb1 /internal/api/model/account.go | |
parent | [chore] bump go-cache to v3.1.7 to fix possible issues with zero value keys (... (diff) | |
download | gotosocial-96f11e757cd28ad3e6ce6ad243ee8bd459d3b124.tar.xz |
[bugfix] Fix login on Mastodon iOS app for users with no statuses (#1042)
* Fix login on Mastodon iOS app for users with no statuses
Mastodon for iOS can't cope with an empty string for a date and
expect a JSON `null` instead.
Fixes https://github.com/superseriousbusiness/gotosocial/issues/1010
* Fix expected values in tests to match
Diffstat (limited to 'internal/api/model/account.go')
-rw-r--r-- | internal/api/model/account.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go index f8bb4f4a0..fb781d61f 100644 --- a/internal/api/model/account.go +++ b/internal/api/model/account.go @@ -78,7 +78,7 @@ type Account struct { StatusesCount int `json:"statuses_count"` // When the account's most recent status was posted (ISO 8601 Datetime). // example: 2021-07-30T09:20:25+00:00 - LastStatusAt string `json:"last_status_at"` + LastStatusAt *string `json:"last_status_at"` // Array of custom emojis used in this account's note or display name. Emojis []Emoji `json:"emojis"` // Additional metadata attached to this account's profile. |