Make ScheduledAt a pointer.

pull/118/head
Ben Lubar 2019-06-14 01:39:23 -05:00 committed by mattn
parent 977e6c550e
commit c9e2d23df3
1 changed files with 7 additions and 7 deletions

View File

@ -250,13 +250,13 @@ const (
// Toot is struct to post status. // Toot is struct to post status.
type Toot struct { type Toot struct {
Status string `json:"status"` Status string `json:"status"`
InReplyToID ID `json:"in_reply_to_id"` InReplyToID ID `json:"in_reply_to_id"`
MediaIDs []ID `json:"media_ids"` MediaIDs []ID `json:"media_ids"`
Sensitive bool `json:"sensitive"` Sensitive bool `json:"sensitive"`
SpoilerText string `json:"spoiler_text"` SpoilerText string `json:"spoiler_text"`
Visibility string `json:"visibility"` Visibility string `json:"visibility"`
ScheduledAt time.Time `json:"scheduled_at,omitempty"` ScheduledAt *time.Time `json:"scheduled_at,omitempty"`
} }
// Mention hold information for mention. // Mention hold information for mention.