- postValidator: drop .escape() from createPost's content rule (was turning
every literal "/" in a URL into /, so link detection and link previews
silently never fired on any post containing a link). React already escapes
rendered text; PostCard never uses dangerouslySetInnerHTML for post content.
- compose/edit live-preview panes DO use dangerouslySetInnerHTML for their
markdown preview and relied on the backend .escape() as their only XSS
guard -- added an explicit &/</> escape before any markdown transform so
removing .escape() doesn't open that up.
- linkify.tsx: linkifyText only matched @mention/#hashtag; added a URL pass
(same regex as extractUrls.ts) so bare https:// URLs render as a real
<a target="_blank">, with mention/hashtag matching skipping any range a URL
already claimed.
- Profile Posts tab called a route that doesn't exist
(GET /users/:username/posts, 404 on every profile). Added real
username/userId filtering to postController.getPosts (it previously ignored
both query params entirely) and pointed both frontend callers
(profileApi.ts's fetchUserPosts, ProfileTabs.tsx's dead-code twin) at
GET /v1/posts?username=. Switched ProfileTabs' infinite-scroll fetcher from
a cursor param the backend never returned to real page-based pagination.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>