mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 13:58:46 +00:00
add scheduled status
This commit is contained in:
parent
4cd8fb2ddb
commit
6a233f6cb2
5 changed files with 17 additions and 3 deletions
|
@ -211,7 +211,8 @@ type Toot struct {
|
|||
Visibility string `json:"visibility"`
|
||||
ContentType string `json:"content_type"`
|
||||
Language string `json:"language"`
|
||||
ExpiresIn int `json:"expires_in"`
|
||||
ExpiresIn int `json:"expires_in"`
|
||||
ScheduledAt string `json:"scheduled_at"`
|
||||
}
|
||||
|
||||
// Mention hold information for mention.
|
||||
|
|
|
@ -364,6 +364,9 @@ func (c *Client) PostStatus(ctx context.Context, toot *Toot) (*Status, error) {
|
|||
if toot.ExpiresIn >= 3600 {
|
||||
params.Set("expires_in", fmt.Sprint(toot.ExpiresIn))
|
||||
}
|
||||
if toot.ScheduledAt != "" {
|
||||
params.Set("scheduled_at", toot.ScheduledAt)
|
||||
}
|
||||
|
||||
var status Status
|
||||
if toot.Edit != "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue