Skip to content

fix: me endpoint reads draft from depth param (fixes #18072) - #16

Open
deepshekhardas wants to merge 1 commit into
mainfrom
fix/me-draft-param-hard-18072
Open

deepshekhardas wants to merge 1 commit into
mainfrom
fix/me-draft-param-hard-18072

Conversation

@deepshekhardas

@deepshekhardas deepshekhardas commented Sep 2, 2026 •

Copy link
Copy Markdown
Owner

Hard bug - meHandler line 20 used depth param twice, draft ignored. Fix reads draft correctly.


Summary by cubic

Fixes the me endpoint so the draft query parameter is read correctly instead of duplicating depth. Draft mode now works as expected for the REST fallback (fixes payloadcms#18072).

Written for commit 5e53df2. Summary will update on new commits.

Review in cubic

searchParams.get('depth') duplicated, draft param ignored for REST fallback. Now correctly reads 'draft'.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authenticated me endpoint ignores the draft URL search parameter

1 participant