diff --git a/admin/src/cards/templates.tsx b/admin/src/cards/templates.tsx index 80ba196..f1f62fd 100644 --- a/admin/src/cards/templates.tsx +++ b/admin/src/cards/templates.tsx @@ -146,7 +146,8 @@ const tarot: Template = { post: (_d, c) => ({ title: `오늘의 ${c.title.replaceAll('\n', ' ').replaceAll('*', '')}`, caption: `Q. ${c.question} 1·2·3 중 한 장을 골라 보세요`, - hashtags: tags(SKIN_TAGS[c.skin ?? ''] ?? [], [c.n1, c.n2, c.n3].map((n) => (n ? `#${n.replace(/각$/, '').replace(/\s/g, '')}` : undefined)), ['#날씨각', '#날씨타로', '#타로', '#오늘의타로', '#오늘의운세', '#오늘날씨']), + // 대주제 배경(skin)과 태그가 안 맞는 주제(나들이 등)는 copy.tags(띄어쓰기로 구분)로 주제 태그를 바꾼다 + hashtags: tags(c.tags ? c.tags.split(' ') : (SKIN_TAGS[c.skin ?? ''] ?? []), [c.n1, c.n2, c.n3].map((n) => (n ? `#${n.replace(/각$/, '').replace(/\s/g, '')}` : undefined)), ['#날씨각', '#날씨타로', '#타로', '#오늘의타로', '#오늘의운세', '#오늘날씨']), }), name: '날씨 타로', autoPlan: true,