this repo has no description
0
fork

Configure Feed

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

fix: preserve rkey when republishing with missing state

When a post's state entry is missing but its frontmatter already
contains an atUri, use "update" instead of "create" to preserve
the existing rkey and avoid duplicate records.

authored by

Julien Calixte and committed by
Julien Calixte
7844aa7b f1fcd005

+2 -3
+2 -3
packages/cli/src/commands/publish.ts
··· 186 186 reason: "forced", 187 187 }); 188 188 } else if (!postState) { 189 - // New post 190 189 postsToPublish.push({ 191 190 post, 192 - action: "create", 193 - reason: "new post", 191 + action: post.frontmatter.atUri ? "update" : "create", 192 + reason: post.frontmatter.atUri ? "missing state" : "new post", 194 193 }); 195 194 } else if (postState.contentHash !== contentHash) { 196 195 // Changed post