From ac723fccd52ae6b4b1ae3b0d09c8911d83be2a0f Mon Sep 17 00:00:00 2001 From: Finomosec <1665799+Finomosec@users.noreply.github.com> Date: Mon, 1 Jun 2026 14:53:41 +0200 Subject: [PATCH] fix: only re-add song to queue if previously 1-star and queue < 500 - Check rating === 1 before re-adding to prevent adding songs that were never in the queue - Only re-add when queue has fewer than 500 items Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/common/useRating.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/common/useRating.jsx b/ui/src/common/useRating.jsx index bbc7c4492..218da9d65 100644 --- a/ui/src/common/useRating.jsx +++ b/ui/src/common/useRating.jsx @@ -76,7 +76,7 @@ export const useRating = (resource, record) => { audio.dispatchEvent(new Event('ended')) } } - } else if (val !== 1 && !inQueue) { + } else if (rating === 1 && val !== 1 && !inQueue && queue.length < 500) { dispatch(addTracks({ [trackId]: record })) } }