Skip to content

Prevent invalid post IDs from crashing rest-api - #2

Merged
kokarn merged 2 commits into
masterfrom
fix/invalid-hashid-post-crash
Aug 1, 2026
Merged

Prevent invalid post IDs from crashing rest-api#2
kokarn merged 2 commits into
masterfrom
fix/invalid-hashid-post-crash

Conversation

@kokarn

@kokarn kokarn commented Aug 1, 2026

Copy link
Copy Markdown
Member

Validates Hashids decode results before querying. Malformed, empty, or multi-ID values now return 404 instead of throwing an uncaught exception. Adds regression coverage for valid and invalid IDs.

@kokarn
kokarn merged commit 6981ba6 into master Aug 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant