From 2f337e4924fd0e761b467dd2f81b8253022222c6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 4 Jan 2025 22:34:30 +0200 Subject: add --compose flag --- internal/platforms/linkedin/linkedin.go | 2 +- internal/platforms/mastodon/mastodon.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/platforms') 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 } -- cgit v1.2.3