A CLI for publishing standard.site documents to ATProto sequoia.pub
standard site lexicon cli publishing
55
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: include slug and bskyPostRef in local state

authored by

Steve and committed by
Tangled
f50fb5aa ba1d6e1d

+4 -1
+4 -1
packages/cli/src/lib/sync.ts
··· 138 138 contentHash = await getContentHash(localPost.rawContent); 139 139 } 140 140 141 - // Update state 141 + // Update state (preserve bskyPostRef from prior publishes) 142 + const existing = state.posts[relativeFilePath]; 142 143 state.posts[relativeFilePath] = { 143 144 contentHash, 144 145 atUri: doc.uri, 145 146 lastPublished: doc.value.publishedAt, 147 + slug: localPost.slug, 148 + ...(existing?.bskyPostRef ? { bskyPostRef: existing.bskyPostRef } : {}), 146 149 }; 147 150 } else { 148 151 unmatchedCount++;