Save to Semble standard.site documents saved for later on Standard Reader

Keep a Semble colletion copy of your "Saved for Later" from Standard Reader (can't delete cards from Semble or from Semble collection by itself yet)

app.standard-reader.bookmark
Lexicon
app.standard-reader.bookmark
Operations
Record created
Watched repos
All repos

Steps (10)

Conditiongate
  • Continue only if event.did equals {{self}}
Fetch recorddocument- Fetches the document data
Lookup
{{event.commit.record.subject}}
VariableCollectionURI
Value
Hidden
Note
ATURI for the Semble Collection of destination
Fetch recordsembleCollection- Fetches data from the Semble Collection
Lookup
{{CollectionURI}}
Conditionbranch
  • If document.record.site starts with http - Checks if it's a document from a publication or loose document
Then

Save on SembleAction 1card1

Page URL
{{document.record.site}}{{document.record.path}}

Create a recordAction 2

Target Collection
network.cosmik.collectionLink
Record Template
{
  "$type": "network.cosmik.collectionLink",
  "card": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{card1.cid}}",
    "uri": "{{card1.uri}}"
  },
  "addedAt": "{{now}}",
  "addedBy": "{{self}}",
  "createdAt": "{{now}}",
  "collection": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{sembleCollection.cid}}",
    "uri": "{{sembleCollection.uri}}"
  },
  "provenance": {
    "$type": "network.cosmik.defs#provenance",
    "via": {
      "$type": "com.atproto.repo.strongRef",
      "cid": "{{card1.cid}}",
      "uri": "{{card1.uri}}"
    }
  }
}
$type is set to the target collection when the record is written.
Otherwise
Fetch recordpublication- Fetches the publication data
Lookup
{{document.record.site}}

Save on SembleAction 3card2

Page URL
{{publication.record.url}}{{document.record.path}}

Create a recordAction 4

Target Collection
network.cosmik.collectionLink
Record Template
{
  "$type": "network.cosmik.collectionLink",
  "card": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{card2.cid}}",
    "uri": "{{card2.uri}}"
  },
  "addedAt": "{{now}}",
  "addedBy": "{{self}}",
  "createdAt": "{{now}}",
  "collection": {
    "$type": "com.atproto.repo.strongRef",
    "cid": "{{sembleCollection.cid}}",
    "uri": "{{sembleCollection.uri}}"
  },
  "provenance": {
    "$type": "network.cosmik.defs#provenance",
    "via": {
      "$type": "com.atproto.repo.strongRef",
      "cid": "{{card2.cid}}",
      "uri": "{{card2.uri}}"
    }
  }
}
$type is set to the target collection when the record is written.