From 82ec029a897b3fa2e98c5459709dfc1f4999dca6 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 15 Jun 2024 18:34:37 +0100 Subject: [PATCH] update variable names --- internal/executor/create.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/executor/create.go b/internal/executor/create.go index 4385997..910508d 100644 --- a/internal/executor/create.go +++ b/internal/executor/create.go @@ -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()), }