diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-04 22:34:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-04 22:34:30 +0200 |
| commit | 2f337e4924fd0e761b467dd2f81b8253022222c6 (patch) | |
| tree | f73cda1e8e056d7f4d4c8fc6001aee2b4dbc6426 /internal/platforms | |
| parent | a35f0ed04c28d80b902a00c3aec84dd86db34e85 (diff) | |
add --compose flag
Diffstat (limited to 'internal/platforms')
| -rw-r--r-- | internal/platforms/linkedin/linkedin.go | 2 | ||||
| -rw-r--r-- | internal/platforms/mastodon/mastodon.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/internal/platforms/linkedin/linkedin.go b/internal/platforms/linkedin/linkedin.go index 85b95af..ebbf5dd 100644 --- a/internal/platforms/linkedin/linkedin.go +++ b/internal/platforms/linkedin/linkedin.go @@ -62,7 +62,7 @@ func post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry) } question := fmt.Sprintf("Do you want to post this message to Linkedin (%v)?", prev) - if content, err = prompt.FileAction(question, content, en.Path); err != nil { + if content, err = prompt.FileAction(question, content, en.Path, prompt.RandomOption); err != nil { return err } diff --git a/internal/platforms/mastodon/mastodon.go b/internal/platforms/mastodon/mastodon.go index 938cf6f..f52f905 100644 --- a/internal/platforms/mastodon/mastodon.go +++ b/internal/platforms/mastodon/mastodon.go @@ -26,7 +26,8 @@ func Post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry) colour.Infoln("Not posting", en, "to Mastodon as dry-run enabled") return nil } - if content, err = prompt.FileAction("Do you want to post this message to Mastodon?", content, en.Path); err != nil { + if content, err = prompt.FileAction("Do you want to post this message to Mastodon?", + content, en.Path, prompt.RandomOption); err != nil { return err } |
