From 81af1067ef8bde2ed94d189bd1a6d67641c6c639 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 3 Nov 2024 08:01:06 +0200 Subject: more ideas --- internal/platforms/linkedin/linkedin.go | 1 + internal/schedule/schedule.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/platforms/linkedin/linkedin.go b/internal/platforms/linkedin/linkedin.go index bb40a65..a8f7a13 100644 --- a/internal/platforms/linkedin/linkedin.go +++ b/internal/platforms/linkedin/linkedin.go @@ -68,6 +68,7 @@ func post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry) return callLinkedInAPI(newCtx, personID, accessToken, content, prev) } +// TODO: Also post preview images func callLinkedInAPI(ctx context.Context, personID, accessToken, content string, prev preview) error { post := map[string]interface{}{ "author": fmt.Sprintf("urn:li:person:%s", personID), diff --git a/internal/schedule/schedule.go b/internal/schedule/schedule.go index ee3abc3..45901ff 100644 --- a/internal/schedule/schedule.go +++ b/internal/schedule/schedule.go @@ -20,6 +20,7 @@ var ( ErrNothingQueued = errors.New("nothing queued") ) +// TODO: Schedule more than N entries per week when the backlog of queued items is large enough. func Run(args config.Args, platform string) (entry.Entry, error) { dir := fmt.Sprintf("%s/db/platforms/%s", args.GosDir, strings.ToLower(platform)) stats, err := newStats(dir, args.Lookback, args.Target) -- cgit v1.2.3