diff --git a/internal/executor/add.go b/internal/executor/add.go index 1ee44e7..f32cdc7 100644 --- a/internal/executor/add.go +++ b/internal/executor/add.go @@ -219,7 +219,7 @@ func (a *AddExecutor) addVoteToStatus(gtsClient *client.Client) error { return MultipleChoiceError{} } - myAccountID, err := getAccountID(gtsClient, true, nil, a.config.CredentialsFile) + myAccountID, err := getAccountID(gtsClient, true, nil) if err != nil { return fmt.Errorf("unable to get your account ID: %w", err) } diff --git a/internal/executor/show.go b/internal/executor/show.go index f65b9f4..665386a 100644 --- a/internal/executor/show.go +++ b/internal/executor/show.go @@ -135,7 +135,7 @@ func (s *ShowExecutor) showStatus(gtsClient *client.Client) error { return nil } - myAccountID, err := getAccountID(gtsClient, true, nil, s.config.CredentialsFile) + myAccountID, err := getAccountID(gtsClient, true, nil) if err != nil { return fmt.Errorf("unable to get your account ID: %w", err) } @@ -189,7 +189,7 @@ func (s *ShowExecutor) showTimeline(gtsClient *client.Client) error { return nil } - myAccountID, err := getAccountID(gtsClient, true, nil, s.config.CredentialsFile) + myAccountID, err := getAccountID(gtsClient, true, nil) if err != nil { return fmt.Errorf("unable to get your account ID: %w", err) } @@ -347,7 +347,7 @@ func (s *ShowExecutor) showBookmarks(gtsClient *client.Client) error { } if len(bookmarks.Statuses) > 0 { - myAccountID, err := getAccountID(gtsClient, true, nil, s.config.CredentialsFile) + myAccountID, err := getAccountID(gtsClient, true, nil) if err != nil { return fmt.Errorf("unable to get your account ID: %w", err) } @@ -367,7 +367,7 @@ func (s *ShowExecutor) showLiked(gtsClient *client.Client) error { } if len(liked.Statuses) > 0 { - myAccountID, err := getAccountID(gtsClient, true, nil, s.config.CredentialsFile) + myAccountID, err := getAccountID(gtsClient, true, nil) if err != nil { return fmt.Errorf("unable to get your account ID: %w", err) }