Fix post types
This commit is contained in:
parent
0503e20b5d
commit
318f33709f
2 changed files with 3 additions and 3 deletions
|
|
@ -98,7 +98,7 @@
|
|||
const payload = {
|
||||
title,
|
||||
slug,
|
||||
postType: 'blog', // 'blog' is the database value for essays
|
||||
type: 'blog', // 'blog' is the database value for essays
|
||||
status,
|
||||
content,
|
||||
tags
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@
|
|||
if (postType === 'essay') {
|
||||
postData = {
|
||||
...postData,
|
||||
type: 'essay',
|
||||
type: 'blog', // 'blog' is the database value for essays
|
||||
title: essayTitle,
|
||||
slug: essaySlug,
|
||||
excerpt: essayExcerpt,
|
||||
|
|
@ -222,7 +222,7 @@
|
|||
// All other content is just a "post" with optional link data and attachments
|
||||
postData = {
|
||||
...postData,
|
||||
type: 'post'
|
||||
type: 'microblog' // 'microblog' is for shorter posts
|
||||
}
|
||||
|
||||
// Add link fields if present
|
||||
|
|
|
|||
Loading…
Reference in a new issue