summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/platforms/linkedin/linkedin.go1
-rw-r--r--internal/run.go1
2 files changed, 2 insertions, 0 deletions
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):