Skip to content

Commit 6b80878

Browse files
authored
fix(syndication): update Hashnode tag shape to PublishPostTagInput (#710)
1 parent fc2c85b commit 6b80878

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎apps/sanity/functions/syndicate-content/index.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,14 @@ export const handler = documentEventHandler<ContentDocument>(
309309
? data.excerpt.substring(0, 247) + "..."
310310
: data.excerpt || "";
311311

312-
const hashnodeTags: Array<{ id: string; name: string; slug: string }> = [
313-
{ id: "56744721958ef13879b94cad", name: "JavaScript", slug: "javascript" },
314-
{ id: "56744722958ef13879b94f1b", name: "Web Development", slug: "web-development" },
315-
{ id: "56744723958ef13879b955a9", name: "Beginner Developers", slug: "beginners" },
312+
const hashnodeTags: Array<{ name: string; slug: string }> = [
313+
{ name: "JavaScript", slug: "javascript" },
314+
{ name: "Web Development", slug: "web-development" },
315+
{ name: "Beginner Developers", slug: "beginners" },
316316
];
317317

318318
if (data._type === "podcast") {
319319
hashnodeTags.push({
320-
id: "56744722958ef13879b950d3",
321320
name: "podcast",
322321
slug: "podcast",
323322
});

‎scripts/run-syndicate-post.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ async function run() {
176176
: (doc.excerpt || "");
177177

178178
const hashnodeTags = [
179-
{ id: "56744721958ef13879b94cad", name: "JavaScript", slug: "javascript" },
180-
{ id: "56744722958ef13879b94f1b", name: "Web Development", slug: "web-development" },
181-
{ id: "56744723958ef13879b955a9", name: "Beginner Developers", slug: "beginners" },
179+
{ name: "JavaScript", slug: "javascript" },
180+
{ name: "Web Development", slug: "web-development" },
181+
{ name: "Beginner Developers", slug: "beginners" },
182182
];
183183

184184
const hashnodeCoverImageUrl = urlForImage(doc.coverImage)?.width(1600).height(840).url() || "";

0 commit comments

Comments
 (0)