From 5f53f241189af3fceb26395af383809cd4fa3bf0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 17 Feb 2026 22:03:10 +0200 Subject: fix: improve LinkedIn API posting and authentication - Add token validation before using cached credentials to prevent stale token issues - Add proper error handling for image upload initialization with helpful 426 messages - Skip data URI images instead of attempting to download them - Update default LinkedIn API version to 202601 (January 2026) - latest active version - Fix re-authentication flow for expired tokens Amp-Thread-ID: https://ampcode.com/threads/T-019c6d28-4526-7738-b593-9bd584baa478 Co-authored-by: Amp --- .../linkedin/testdata/fuzz/FuzzLinkedInURLExtract/5ffd3a9d58497377 | 2 ++ .../linkedin/testdata/fuzz/FuzzLinkedInURLExtract/771e938e4458e983 | 2 ++ .../linkedin/testdata/fuzz/FuzzLinkedInURLExtract/b0118fa98fb2891d | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/5ffd3a9d58497377 create mode 100644 internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/771e938e4458e983 create mode 100644 internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/b0118fa98fb2891d (limited to 'internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract') diff --git a/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/5ffd3a9d58497377 b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/5ffd3a9d58497377 new file mode 100644 index 0000000..2eecaf6 --- /dev/null +++ b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/5ffd3a9d58497377 @@ -0,0 +1,2 @@ +go test fuzz v1 +string("\n\n\n") diff --git a/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/771e938e4458e983 b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/771e938e4458e983 new file mode 100644 index 0000000..ee3f339 --- /dev/null +++ b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/771e938e4458e983 @@ -0,0 +1,2 @@ +go test fuzz v1 +string("0") diff --git a/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/b0118fa98fb2891d b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/b0118fa98fb2891d new file mode 100644 index 0000000..190e0f4 --- /dev/null +++ b/internal/platforms/linkedin/testdata/fuzz/FuzzLinkedInURLExtract/b0118fa98fb2891d @@ -0,0 +1,2 @@ +go test fuzz v1 +string("0 0") -- cgit v1.2.3