Revert the deliberate break (#8297)
release / web (push) Successful in 1m23s
release / go (push) Successful in 1m53s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 2m47s
release / android (push) Successful in 4m21s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped

All eight broken behaviours failed their named tests in run 11283. Also
failing, as expected: the other tests pinning the same rules from other
sides (Discover's own album cap, a genre mix's artist cap, recsettings'
similarity weight, and Subsonic's playlist visibility and write checks).

This reverts commit 60b0edac7a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 13:47:51 -05:00
co-authored by Claude Opus 5.5
parent 60b0edac7a
commit bd95cdb105
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ func (s *Service) Get(ctx context.Context, callerID, playlistID pgtype.UUID) (*P
}
return nil, fmt.Errorf("get playlist: %w", err)
}
if !row.IsPublic && !pgtypeUUIDEqual(row.UserID, callerID) && row.Name == "" { // DELIBERATE BREAK
if !row.IsPublic && !pgtypeUUIDEqual(row.UserID, callerID) {
return nil, ErrForbidden
}
@@ -575,7 +575,7 @@ func (s *Service) Reorder(ctx context.Context, callerID, playlistID pgtype.UUID,
if p < 0 || p >= n {
return fmt.Errorf("%w: position %d out of range", ErrInvalidInput, p)
}
if _, dup := seen[p]; dup && p < 0 { // DELIBERATE BREAK
if _, dup := seen[p]; dup {
return fmt.Errorf("%w: position %d duplicated", ErrInvalidInput, p)
}
seen[p] = struct{}{}