Skip to content

Commit

Permalink
Merge pull request #289 from cnblogs/fix-option-not-checked
Browse files Browse the repository at this point in the history
fix: set displayOnHomePage to true
  • Loading branch information
cnblogs-dudu authored Mar 1, 2024
2 parents 4e1b032 + b19a467 commit 883970e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service/post/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function createPost() {
post.postBody = '# Hello World\n'
post.isMarkdown = true
post.isDraft = true
post.displayOnHomePage = true
post.postType = PostType.blogPost
const postId = (await PostService.update(post)).id
if (postId > 0) {
Expand Down

0 comments on commit 883970e

Please sign in to comment.