From 09144495a49cd04df87f467ee045899cfeae3a30 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 23 Oct 2024 10:08:21 +0300 Subject: more todos --- internal/platforms/linkedin/linkedin.go | 1 + internal/run.go | 1 + 2 files changed, 2 insertions(+) (limited to 'internal') diff --git a/internal/platforms/linkedin/linkedin.go b/internal/platforms/linkedin/linkedin.go index c96db1b..8224913 100644 --- a/internal/platforms/linkedin/linkedin.go +++ b/internal/platforms/linkedin/linkedin.go @@ -18,6 +18,7 @@ import ( var errUnauthorized = errors.New("unauthorized access, refresh or create token?") +// TODO: Why are no previews of links shown then posted? func Post(ctx context.Context, args config.Args, sizeLimit int, ent entry.Entry) error { err := post(ctx, args, sizeLimit, ent) if errors.Is(err, errUnauthorized) { diff --git a/internal/run.go b/internal/run.go index 98fb501..513d71e 100644 --- a/internal/run.go +++ b/internal/run.go @@ -35,6 +35,7 @@ func Run(ctx context.Context, args config.Args) error { } func runPlatform(ctx context.Context, args config.Args, platform string, sizeLimit int) error { + // TODO: ctx should be extended, when editing a file due to its size being too large ent, err := schedule.Run(args, platform) switch { case errors.Is(err, schedule.ErrNothingToSchedule): -- cgit v1.2.3