Fix post types

This commit is contained in:
Justin Edmund 2025-06-10 23:53:17 -07:00
parent 0503e20b5d
commit 318f33709f
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@
const payload = { const payload = {
title, title,
slug, slug,
postType: 'blog', // 'blog' is the database value for essays type: 'blog', // 'blog' is the database value for essays
status, status,
content, content,
tags tags

View file

@ -212,7 +212,7 @@
if (postType === 'essay') { if (postType === 'essay') {
postData = { postData = {
...postData, ...postData,
type: 'essay', type: 'blog', // 'blog' is the database value for essays
title: essayTitle, title: essayTitle,
slug: essaySlug, slug: essaySlug,
excerpt: essayExcerpt, excerpt: essayExcerpt,
@ -222,7 +222,7 @@
// All other content is just a "post" with optional link data and attachments // All other content is just a "post" with optional link data and attachments
postData = { postData = {
...postData, ...postData,
type: 'post' type: 'microblog' // 'microblog' is for shorter posts
} }
// Add link fields if present // Add link fields if present