Draft/published state filtering in context queries #10
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#11 Publish/unpublish action in UI
austin/blog
Reference
austin/blog#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.