From 417965eac580ff9fe0d2099ebe0b05b1607788b0 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Fri, 7 Aug 2026 01:54:42 -0700 Subject: [PATCH 1/2] fix(api): accept coin_flair_mint when creating a user update_user_request_body has carried coin_flair_mint since 0175; the create body never did. Nothing about the field explains the difference -- the column comment describes it as "the coin which the user has selected as their preferred flair", a display preference in the same shape as spl_usdc_payout_wallet, which is accepted on create. The ordering makes an oversight the likelier reading than intent: 0141 added profile_type and 0175 coin_flair_mint and 0200 spl_usdc_payout_wallet, and the one in the middle is the only one missing from the create body. With this, create and update differ by exactly the fields that should differ: user_id and wallet are create-only, artist_pick_track_id and is_deactivated update-only. artist_pick_track_id references a track the account cannot own at signup -- across 292,111 users never modified after creation it appears zero times -- and creating an already-deactivated account is meaningless. Found while auditing the indexer, which was dropping four fields the create body already accepted (OpenAudio/go-openaudio#466). Co-Authored-By: Claude Opus 5 --- api/swagger/swagger-v1.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/swagger/swagger-v1.yaml b/api/swagger/swagger-v1.yaml index 9c396c42..6eed67e7 100644 --- a/api/swagger/swagger-v1.yaml +++ b/api/swagger/swagger-v1.yaml @@ -13708,6 +13708,9 @@ components: spl_usdc_payout_wallet: type: string description: Solana USDC payout wallet address + coin_flair_mint: + type: string + description: Coin flair mint address playlist_library: $ref: "#/components/schemas/user_playlist_library" events: From ea4ade4a57d8a143f160f77b9e9affb4efab100b Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Sat, 8 Aug 2026 00:16:46 -0700 Subject: [PATCH 2/2] fix(api): accept coin_flair_mint in the create-user handler struct Co-Authored-By: Claude Fable 5 --- api/v1_users.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v1_users.go b/api/v1_users.go index f279feed..149d5fd8 100644 --- a/api/v1_users.go +++ b/api/v1_users.go @@ -47,6 +47,7 @@ type CreateUserRequest struct { ProfileType *string `json:"profile_type,omitempty" validate:"omitempty,oneof=label"` AllowAiAttribution *bool `json:"allow_ai_attribution,omitempty"` SplUsdcPayoutWallet *string `json:"spl_usdc_payout_wallet,omitempty"` + CoinFlairMint *string `json:"coin_flair_mint,omitempty"` PlaylistLibrary *PlaylistLibrary `json:"playlist_library,omitempty" validate:"omitempty"` Events *Events `json:"events,omitempty"` }