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
|
||||
federated bool
|
||||
likeable bool
|
||||
pollAllowMultipleChoices bool
|
||||
pollHideVoteCounts bool
|
||||
pollAllowsMultipleChoices bool
|
||||
pollHidesVoteCounts bool
|
||||
replyable bool
|
||||
sensitive *bool
|
||||
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.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.pollAllowMultipleChoices, 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.pollAllowsMultipleChoices, flagPollAllowsMultipleChoices, false, "The poll allows viewers to make multiple choices in the poll")
|
||||
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.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)")
|
||||
|
@ -209,8 +209,8 @@ func (c *CreateExecutor) createStatus(gtsClient *client.Client) error {
|
|||
|
||||
poll := client.CreateStatusPollForm{
|
||||
Options: c.pollOptions,
|
||||
Multiple: c.pollAllowMultipleChoices,
|
||||
HideTotals: c.pollHideVoteCounts,
|
||||
Multiple: c.pollAllowsMultipleChoices,
|
||||
HideTotals: c.pollHidesVoteCounts,
|
||||
ExpiresIn: int(c.pollExpiresIn.Duration.Seconds()),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue