Make ScheduledAt a pointer.
This commit is contained in:
parent
977e6c550e
commit
c9e2d23df3
14
mastodon.go
14
mastodon.go
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user