Commit f25ef119 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix channels.py accepting user_id/owner_id from the request body

Every route in this router trusted a client-supplied user_id/owner_id
instead of deriving it from the JWT like every other router in the app
(soundmarks, social, discovery, library all use get_current_user) - any
caller could create a channel as any user, follow/unfollow as any user,
or post vibe-sets/stories/showcases as any user by just changing a
number in the request body. Also none of the routes required auth at
all, including plain reads.

Adds get_current_user to every route and derives the caller's identity
from current_user.id instead, removing the now-redundant id fields from
every request schema.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 58f8389f
Pipeline #1071 passed with stage
in 4 minutes and 53 seconds