Draft/published state filtering in context queries #10

Open
opened 2026-03-15 04:35:58 +00:00 by austin · 0 comments
Owner

Add context functions to distinguish between draft and published posts. list_posts/0 (public) should only return posts with a non-nil published_at, while an admin-facing list_all_posts/0 returns everything.

Add context functions to distinguish between draft and published posts. list_posts/0 (public) should only return posts with a non-nil published_at, while an admin-facing list_all_posts/0 returns everything.
austin self-assigned this 2026-03-15 04:35:58 +00:00
Sign in to join this conversation.
No labels
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
austin/blog#10
No description provided.