Skip to content

Commit

Permalink
Fix: stop IsZero() on nil
Browse files Browse the repository at this point in the history
  • Loading branch information
AlyxPractice authored and mattn committed Apr 17, 2024
1 parent 8d5016c commit a1e6bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func (c *Client) postStatus(ctx context.Context, toot *Toot, update bool, update
if toot.SpoilerText != "" {
params.Set("spoiler_text", toot.SpoilerText)
}
if !toot.ScheduledAt.IsZero() {
if toot.ScheduledAt != nil {
params.Set("scheduled_at", toot.ScheduledAt.Format(time.RFC3339))
}

Expand Down

0 comments on commit a1e6bb0

Please sign in to comment.