The first public release of Fabled Minstrel #158
@@ -197,6 +197,11 @@ func (h *pickHandlers) ownPlaylist(w http.ResponseWriter, r *http.Request, user
|
|||||||
}
|
}
|
||||||
detail, err := h.playlists.Get(r.Context(), user.ID, id)
|
detail, err := h.playlists.Get(r.Context(), user.ID, id)
|
||||||
switch {
|
switch {
|
||||||
|
case errors.Is(err, playlists.ErrForbidden):
|
||||||
|
// Get refuses only someone else's private list, which reads as
|
||||||
|
// absent.
|
||||||
|
h.failPlaylistChange(w, r, playlists.ErrNotFound)
|
||||||
|
return nil, false
|
||||||
case err != nil:
|
case err != nil:
|
||||||
h.failPlaylistChange(w, r, err)
|
h.failPlaylistChange(w, r, err)
|
||||||
return nil, false
|
return nil, false
|
||||||
|
|||||||
Reference in New Issue
Block a user