From dd23ac48678c704949074dd0e41bb8a3550cc33f Mon Sep 17 00:00:00 2001 From: r Date: Wed, 19 Feb 2020 16:33:21 +0000 Subject: Fix time duration value - Make sure that duration is not < 0 - Handle nil ExpiresAt time in poll --- mastodon/poll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') diff --git a/mastodon/poll.go b/mastodon/poll.go index 274b95e..cd874a7 100644 --- a/mastodon/poll.go +++ b/mastodon/poll.go @@ -10,7 +10,7 @@ import ( type Poll struct { ID string `json:"id"` - ExpiresAt time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at"` Expired bool `json:"expired"` Multiple bool `json:"multiple"` VotesCount int64 `json:"votes_count"` -- cgit v1.2.3