update variable names
This commit is contained in:
parent
f66e34cd49
commit
82ec029a89
1 changed files with 6 additions and 6 deletions
|
@ -22,8 +22,8 @@ type CreateExecutor struct {
|
||||||
boostable bool
|
boostable bool
|
||||||
federated bool
|
federated bool
|
||||||
likeable bool
|
likeable bool
|
||||||
pollAllowMultipleChoices bool
|
pollAllowsMultipleChoices bool
|
||||||
pollHideVoteCounts bool
|
pollHidesVoteCounts bool
|
||||||
replyable bool
|
replyable bool
|
||||||
sensitive *bool
|
sensitive *bool
|
||||||
content string
|
content string
|
||||||
|
@ -50,8 +50,8 @@ func NewCreateExecutor(tlf TopLevelFlags, name, summary string) *CreateExecutor
|
||||||
createExe.BoolVar(&createExe.federated, flagEnableFederation, true, "Specify if the status can be federated beyond the local timelines")
|
createExe.BoolVar(&createExe.federated, flagEnableFederation, true, "Specify if the status can be federated beyond the local timelines")
|
||||||
createExe.BoolVar(&createExe.likeable, flagEnableLikes, true, "Specify if the status can be liked/favourited")
|
createExe.BoolVar(&createExe.likeable, flagEnableLikes, true, "Specify if the status can be liked/favourited")
|
||||||
createExe.BoolVar(&createExe.replyable, flagEnableReplies, true, "Specify if the status can be replied to")
|
createExe.BoolVar(&createExe.replyable, flagEnableReplies, true, "Specify if the status can be replied to")
|
||||||
createExe.BoolVar(&createExe.pollAllowMultipleChoices, flagPollAllowsMultipleChoices, false, "The poll allows viewers to make multiple choices in the poll")
|
createExe.BoolVar(&createExe.pollAllowsMultipleChoices, flagPollAllowsMultipleChoices, false, "The poll allows viewers to make multiple choices in the poll")
|
||||||
createExe.BoolVar(&createExe.pollHideVoteCounts, flagPollHidesVoteCounts, false, "The poll will hide the vote count until it is closed")
|
createExe.BoolVar(&createExe.pollHidesVoteCounts, flagPollHidesVoteCounts, false, "The poll will hide the vote count until it is closed")
|
||||||
createExe.BoolVar(&createExe.addPoll, flagAddPoll, false, "Add a poll to the status")
|
createExe.BoolVar(&createExe.addPoll, flagAddPoll, false, "Add a poll to the status")
|
||||||
createExe.StringVar(&createExe.content, flagContent, "", "The content of the status to create")
|
createExe.StringVar(&createExe.content, flagContent, "", "The content of the status to create")
|
||||||
createExe.StringVar(&createExe.contentType, flagContentType, "plain", "The type that the contents should be parsed from (valid values are plain and markdown)")
|
createExe.StringVar(&createExe.contentType, flagContentType, "plain", "The type that the contents should be parsed from (valid values are plain and markdown)")
|
||||||
|
@ -209,8 +209,8 @@ func (c *CreateExecutor) createStatus(gtsClient *client.Client) error {
|
||||||
|
|
||||||
poll := client.CreateStatusPollForm{
|
poll := client.CreateStatusPollForm{
|
||||||
Options: c.pollOptions,
|
Options: c.pollOptions,
|
||||||
Multiple: c.pollAllowMultipleChoices,
|
Multiple: c.pollAllowsMultipleChoices,
|
||||||
HideTotals: c.pollHideVoteCounts,
|
HideTotals: c.pollHidesVoteCounts,
|
||||||
ExpiresIn: int(c.pollExpiresIn.Duration.Seconds()),
|
ExpiresIn: int(c.pollExpiresIn.Duration.Seconds()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue