mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 00:32:26 -05:00
[bugfix] Fix Toot CLI media attachments not working properly (#726)
This commit is contained in:
parent
7b72ba4ab2
commit
7ca5bac7c6
3 changed files with 17 additions and 2 deletions
|
|
@ -144,8 +144,12 @@ type StatusCreateRequest struct {
|
|||
Status string `form:"status" json:"status" xml:"status"`
|
||||
// Array of Attachment ids to be attached as media.
|
||||
// If provided, status becomes optional, and poll cannot be used.
|
||||
//
|
||||
// If the status is being submitted as a form, the key is 'media_ids[]',
|
||||
// but if it's json or xml, the key is 'media_ids'.
|
||||
//
|
||||
// in: formData
|
||||
MediaIDs []string `form:"media_ids" json:"media_ids" xml:"media_ids"`
|
||||
MediaIDs []string `form:"media_ids[]" json:"media_ids" xml:"media_ids"`
|
||||
// Poll to include with this status.
|
||||
// swagger:ignore
|
||||
Poll *PollRequest `form:"poll" json:"poll" xml:"poll"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue