Commit Graph

12 Commits

Author SHA1 Message Date
Devin Zuczek f871736839 [api] player photo tagging setting
GET/PUT /api/players/v1/playerPhotoTaggingSetting, ported from the reference's
PlayerDB.Get/SetPlayerPhotoTaggingSetting. Backed by the shared player-settings
KV bag (owned by the `playersettings` worker) under a `PlayerPhotoTaggingSetting`
key rather than its own table.

The setting is served as the enum ORDINAL (0 Anyone / 1 Friends / 2 NoOne) — the
reference registers no JsonStringEnumConverter, so the client decodes a number.
Unset reads back 0; the PUT answers a bare true, or false when the body carries
no recognizable setting, as the reference's bool does.

The write merges into the player's settings map and seeds the `playersettings`
defaults when there is none yet, so writing this key can't cost a player the
seeding that worker's first read would have done.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 00:34:54 -04:00
Devin Zuczek b3f1d04823 add invention blob hash which does not seem to help 2026-08-01 12:15:56 -04:00
Devin Zuczek 2ff6526834 clean up some social endpoints, sockets not working yet 2026-07-16 13:15:06 -04:00
Devin Zuczek c9996229db update wrangler/workers version 2026-07-13 18:24:00 -04:00
Devin Zuczek a1d9fc17f0 misc rooms endpoints, friends 2026-07-08 13:22:06 -04:00
Devin Zuczek baf43bfe31 authentication improvements 2026-07-06 21:08:24 -04:00
Devin Zuczek 8b42c23764 update some naming conventions 2026-06-30 13:03:46 -04:00
Devin Zuczek 81815ef06c remove hard coded routes 2026-06-29 23:16:42 -04:00
Devin Zuczek 69b89e2dc4 testing generic deploy 2026-06-29 23:16:42 -04:00
Devin Zuczek 335b4d68ce more endpoints, fix orientation on new accounts 2026-06-15 22:39:24 -04:00
Devin Zuczek 0dbd388249 trying to get rooms up 2026-06-15 00:29:11 -04:00
Devin Zuczek d2170ff7cf almost into a room 2026-06-09 00:49:11 -04:00