Bookmark by replying on Bluesky

When I reply "Bookmark" to a Bluesky post, bookmark all links it contains on the community lexicon

app.bsky.feed.post
Lexicon
app.bsky.feed.post
Operations
Record created
Watched repos
  • {{self}}

Steps (6)

Conditiongate
  • Continue only if event.commit.record.text equals Bookmark
  • and event.commit.record.reply.parent.uri exists
Fetch recordparentPost
Lookup
{{event.commit.record.reply.parent.uri}}
Conditiongate
  • Continue only if parentPost.found equals true

Collect linksAction 1links

Source
{{parentPost.record}}
Output
{{links}}
Dedupe
on
Allowed paths
embed.external.uri, facets[].features[].uri
Loopaction2
For each item in links[]

Create a recordAction 2

Target Collection
community.lexicon.bookmarks.bookmark
Record Template
{
  "subject": "{{item}}",
  "createdAt": "{{now}}"
}