Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added scripts/assets/php2shell-cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scripts/assets/php2shell-meme.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions scripts/backfill-content-from-transcripts.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createClient } from "@sanity/client";
import { publishPhp2ShellPost } from "./publish-php2shell-post.mjs";

const projectId = process.env.SANITY_STUDIO_PROJECT_ID || "hfh83o0w";
const dataset = process.env.SANITY_STUDIO_DATASET || "production";
Expand Down Expand Up @@ -173,6 +174,9 @@ async function run() {
.then(() => console.log(`✓ Successfully updated ${doc2Id}`))
.catch((err) => console.error(`✗ Error updating ${doc2Id}:`, err.message));

// 3. Publish PHP2Shell blog post & patch missing excerpts
await publishPhp2ShellPost();

console.log("Backfill complete!");
}

Expand Down
Loading
Loading