Skip to main content

Overview

The blog system supports creating posts, a moderation workflow, and user engagement through likes.

Post visibility states

Create a post

Set publish: false to save as draft, or publish: true to submit for approval.

Get all public posts

Get a single post

Update a post

When a regular user edits a public post, it returns to pending status for re-approval.

Like a post

Toggle like on a post:

Moderation (moderator/admin only)

Approve a post

Reject a post

Delete a post

  • Draft/pending posts: Permanently deleted
  • Public posts by author: Soft deleted
  • Any post by admin: Permanently deleted