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{