Enrich Posts/GeoDrop responses, validate songs exist, add list/stream endpoints
Posts and GeoDrop only ever returned bare song_id/user_id, had no way
to browse posts at all (only create one or fetch one specific post's
remix tree by id), and let you create a post/drop referencing a
nonexistent song_id with no validation.
- GET /social/posts: recent top-level posts (remixes nest under their
parent via the existing tree endpoint instead), with a remix_count so
the frontend doesn't need a second call to know if a post has replies.
- Post/GeoDrop responses now include full song metadata
(title/artist/album/coverart) and the author's username.
- create_post/create_geo_drop now 404 if the song (or, for remixes, the
parent post) doesn't exist instead of silently creating a dangling row.
- GET /social/geo-drop/{id}/stream: stream a dropped song regardless of
who uploaded it, mirroring /soundmarks/{id}/stream and
/social/rooms/{id}/stream's same reasoning - the whole point of a
drop is someone else finding and playing it.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment