From 5295d92dfcdf6e5eb357a35ffdb457040e178c27 Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Wed, 5 Aug 2026 15:51:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B0=99=EC=9D=80=20=EC=BB=B7=20?= =?UTF-8?q?=EA=B7=B8=EB=A3=B9=20=EC=95=88=EC=97=90=20=EA=B0=99=EC=9D=80=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=B9=B4=EB=93=9C=EA=B0=80=20=EB=91=90=20?= =?UTF-8?q?=EC=9E=A5=20=EB=9C=A8=EB=8D=98=20=EC=A4=91=EB=B3=B5=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 컷별 '채우기' 섹션(cand)이 그 컷 추천(rec)에 이미 나온 카드를 제외하지 않아, 타임스탬프 없는 댓글이 추천되면 추천 섹션과 채우기 섹션에 쌍으로 떴다. 다른 컷의 복사본은 '이동'용 쌍둥이라 그대로 두고, 같은 컷 안에서만 거른다. Co-Authored-By: Claude Opus 5 (1M context) --- server/static/auto.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/static/auto.js b/server/static/auto.js index 298f5db..1550f92 100644 --- a/server/static/auto.js +++ b/server/static/auto.js @@ -220,11 +220,14 @@ function renderCutPanel(box,panelId,data,opts){ unit+" "+(cu.i+1)+" · "+cu.sec+"초 · 카드 "+cu.quota+"장"+ (cu.bottom?" — "+cu.bottom:"")+(why?" "+why:""), rec.concat(rest),panelId,Math.max(CARD_PAGE,rec.length),cu.i)); - // 부족분 채우기 — 컷마다 반복되므로 처음엔 조금만 그리고 나머지는 더보기로 - if(cand.length) + // 부족분 채우기 — 컷마다 반복되므로 처음엔 조금만 그리고 나머지는 더보기로. + // 이 컷 추천(rec)에 이미 나온 카드는 뺀다 — 안 빼면 같은 컷 그룹 안에 같은 댓글이 + // 두 장 뜬다(다른 컷의 복사본은 '이동'용이라 남기지만, 같은 컷 안은 순수 중복). + const fill=cand.filter(i=>!rec.includes(i)); + if(fill.length) body.appendChild(cardSection( - "↳ 좋아요 상위에서 채우기 "+cand.length+"장 (이 컷에 넣기)", - cand,panelId,CUT_FILL_PAGE,cu.i)); + "↳ 좋아요 상위에서 채우기 "+fill.length+"장 (이 컷에 넣기)", + fill,panelId,CUT_FILL_PAGE,cu.i)); box.appendChild(grp); } }else{