feat: publish note lexicon!

This commit is contained in:
Julien Calixte
2026-02-07 22:19:28 +01:00
parent ee389fb77a
commit d544eb2f04
2 changed files with 11 additions and 11 deletions

11
main.ts
View File

@@ -5,7 +5,7 @@ const jetstream = new Jetstream({
"site.standard.graph.subscription",
"site.standard.publication",
"site.standard.document",
"space.litenote.post",
"space.litenote.note",
],
});
@@ -13,9 +13,9 @@ const jetstream = new Jetstream({
jetstream.onCreate("site.standard.graph.subscription", (event) => {
// Check if it references litenote content
const { did, commit } = event
console.log(did, commit);
console.log(did, commit);
});
jetstream.onCreate("site.standard.publication", (event) => {
// Check if it references litenote content
const { did, commit } = event
@@ -28,12 +28,13 @@ jetstream.onCreate("site.standard.document", (event) => {
// Check if it references litenote content
const { did, commit } = event
console.log(did, commit);
});
// Handle your custom posts
jetstream.onCreate("space.litenote.post", (event) => {
jetstream.onCreate("space.litenote.note", (event) => {
// Process litenote-specific data
const { did, commit } = event
console.log(did, commit);
});
jetstream.start();