mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-08 10:27:08 +02:00
* [bugfix] player: use userId, other fixes This PR primarily resolves #1928 by switching the foreign key of `player` from `user.user_name` to `user.id`. There are also a few other fixes/changes: - For some bizarre reason, `ip_address` is never returned from `read`/`get`. Change the field to `ip`, which works. Somehow - Update `players_test.go` mock to also check for user agent, replicating the actual code - Update `player_repository.go` `isPermitted` to check user id. I don't know how this worked before... - tests! - a few places referred to `typ`, when it is really `userAgent`. Change the field names * baseRequest -> selectPlayer * remove comment * update migration, make all of persistence foreign key enabled * maybe don't forget to save the file first |
||
|---|---|---|
| .. | ||
| agents | ||
| artwork | ||
| auth | ||
| ffmpeg | ||
| playback | ||
| scrobbler | ||
| archiver.go | ||
| archiver_test.go | ||
| common.go | ||
| core_suite_test.go | ||
| external_metadata.go | ||
| media_streamer.go | ||
| media_streamer_Internal_test.go | ||
| media_streamer_test.go | ||
| metrics.go | ||
| players.go | ||
| players_test.go | ||
| playlists.go | ||
| playlists_test.go | ||
| share.go | ||
| share_test.go | ||
| wire_providers.go | ||