Skip to content

fix(blog-publish): pass mp-syndicate-to so LinkedIn cross-post actually fires#46

Merged
superterran merged 1 commit into
mainfrom
fix/microblog-syndicate-to
May 19, 2026
Merged

fix(blog-publish): pass mp-syndicate-to so LinkedIn cross-post actually fires#46
superterran merged 1 commit into
mainfrom
fix/microblog-syndicate-to

Conversation

@superterran
Copy link
Copy Markdown
Contributor

Summary

micro.blog's Micropub API requires per-post opt-in via mp-syndicate-to[]=<uid> to actually trigger LinkedIn / Mastodon / Bluesky / Threads syndication. Without it, the note shows up on doughatcher.com/ but nothing leaves micro.blog.

This is a follow-up to #45 — the first cross-post test posted to the timeline but didn't reach LinkedIn for this reason.

Changes

  • microblog-poster.js reads MICROBLOG_SYNDICATE_TO (comma-separated UIDs) and emits one mp-syndicate-to[]= form field per destination.
  • blog-publish.yml defaults MICROBLOG_SYNDICATE_TO=linkedin if the repo variable is unset.

UIDs available on your account (from GET /micropub?q=syndicate-to): linkedin, mastodon, bluesky, threads. Override with repo variable MICROBLOG_SYNDICATE_TO.

Test plan

  • Merge to main
  • Manually trigger blog-publish.yml with post_path=content/blog/2026-04-25-devops-matters-more-when-ai-writes-code.md
  • Confirm LinkedIn syndication lands within a couple of minutes

🤖 Generated with Claude Code

…kedIn

micro.blog's Micropub API does NOT honor the account-level cross-post
defaults for API-posted entries. Each post must explicitly opt in via
mp-syndicate-to[]=<uid>. Without it, the note lands on the timeline but
LinkedIn/Mastodon/Bluesky/Threads stay silent.

- microblog-poster.js: read MICROBLOG_SYNDICATE_TO (comma-separated UIDs)
  and emit one mp-syndicate-to[]= field per destination.
- blog-publish.yml: default MICROBLOG_SYNDICATE_TO=linkedin if the repo
  variable is unset. Override by setting vars.MICROBLOG_SYNDICATE_TO
  (e.g. "linkedin,bluesky").

Discover available UIDs at GET https://micro.blog/micropub?q=syndicate-to.
@superterran superterran merged commit fa10e88 into main May 19, 2026
1 check passed
@superterran superterran deleted the fix/microblog-syndicate-to branch May 19, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant