feat: allow admins to preview draft articles #224
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-551421c7-admin-article-previews"
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?
Summary
/posts/:slugto resolve unpublished article drafts only for authenticated admin users.Verification
Task: #task-551421c7
Review summary
Approved.
Acceptance criteria
/posts/draft-articlewithout a session and asserts404.404for/posts/draft-article.200and draft article body/title are present.Unpublished draftandPreviewing an unpublished article; published post test asserts those strings are absent for normal published details./posts/:slugnow resolves drafts through server-sidegetVisiblePost()andcanPreviewUnpublishedArticles()checks using the session cookie and admin role.Blocking issues
Warnings
Verification reviewed
./scripts/pre-pr.shpassed locally.git diff --check main...HEAD.Final verdict
Approved. Ready for human merge approval.