Sync Bluesky post into (copy)

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

Steps (4)

Conditiongate
  • Continue only if event.did equals {{self}} - I only care about my documents
Fetch recordpublication- gives me the publication to edit the bskypost ref (and also build the url in post finder)
Lookup
at://did:plc:edrxgagoyn2shm345q5nxaze/site.standard.publication/3ml7lh23tdz2s
Search recordspost
Collection
app.bsky.feed.post
In repo
{{self}}
Where
text equals ๐Ÿ“ {{event.commit.record.title}} ยท {{event.commit.record.description}} {{publication.record.url}}{{event.commit.record.path}}

Update a recordAction 1action1

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": "{{post.cid}}",
    "uri": "{{post.uri}}"
  }
}