diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-24 11:03:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-24 11:03:19 +0300 |
| commit | 4b96e88e8bccac7ab0a4e636f67d260a9fea25a5 (patch) | |
| tree | 494b47fe674553074dc5901ac8af266e19bb03ff /internal/platforms | |
| parent | 8b4cd3d9d2af89efdb9b0225742d70edc3483bf4 (diff) | |
jo
Diffstat (limited to 'internal/platforms')
| -rw-r--r-- | internal/platforms/linkedin/linkedin.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/platforms/linkedin/linkedin.go b/internal/platforms/linkedin/linkedin.go index b6bc3c6..ebd92b0 100644 --- a/internal/platforms/linkedin/linkedin.go +++ b/internal/platforms/linkedin/linkedin.go @@ -72,6 +72,10 @@ func callLinkedInAPI(ctx context.Context, personID, accessToken, content string, "isReshareDisabledByAuthor": false, } + if len(urls) > 0 { + // TODO: Add media links to post structure + } + payload, err := json.Marshal(post) if err != nil { return fmt.Errorf("Error encoding JSON:%w", err) |
