Announce my blog posts on Bluesky

When I publish a new blog post, announce it on Bluesky and write bskyPostRef back for comments to work

site.standard.document
Lexicon
site.standard.document
Operations
Record created

Steps (4)

Conditiongate
  • Continue only if event.did equals {{self}}
  • and event.commit.record.site equals at://did:plc:cwdkf4xxjpznceembuuspt3d/site.standard.publication/3mdrpafzz7c2m
Fetch recordpublication- Fetch the publication to get its URL
Lookup
{{event.commit.record.site}}

Post to BlueskyAction 1action1- Post to Bluesky

Text Template
๐Ÿ“ {{event.commit.record.title}} ยท {{event.commit.record.description}} {{publication.record.url}}{{event.commit.record.path}}
Embed URL
{{publication.record.url}}{{event.commit.record.path}}
Languages
en

Update a recordAction 2action2- Link the blog post to the Bluesky post

Target Collection
site.standard.document
Base Record URI
at://{{event.did}}/site.standard.document/{{event.commit.rkey}}
Update mode
Shallow merge
Patch Template
{
  "bskyPostRef": {
    "cid": "{{action1.cid}}",
    "uri": "{{action1.uri}}"
  }
}