Commit 7ac437c4 authored by Gandalf's avatar Gandalf
Browse files

fix: Add username validation to avatar endpoints

Add Hive account name validation to avatar proxy endpoints in both
blog and wallet apps. Invalid usernames now return 400 Bad Request
instead of being passed to the image host.

Validation uses wax library with regex fallback for thread-safety.
The validation logic is centralized in @hive/transaction package
and re-exported from apps/blog/utils/validate-links.ts for
backwards compatibility.
parent 18bd1b53
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment