• Aryan Noshirvnai's avatar
    Enrich Posts/GeoDrop responses, validate songs exist, add list/stream endpoints · 77a227a2
    Aryan Noshirvnai authored
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    77a227a2
Name
Last commit
Last update
..
__init__.py Loading commit data...
auth.py Loading commit data...
channels.py Loading commit data...
discovery.py Loading commit data...
library.py Loading commit data...
music.py Loading commit data...
remix.py Loading commit data...
social.py Loading commit data...
soundmarks.py Loading commit data...