Add automatic Threads link replies and sunrise preview card

This commit is contained in:
2026-11-02 04:46:17 +09:00
parent 39374cea05
commit 586e59608e
12 changed files with 168 additions and 8 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ const samples: Record<string, WeatherSample | null> = {
rain: { ...base, rain: 1 }, snow: { ...base, snowfall: 1 }, unknown: null,
};
for (const [condition, weather] of Object.entries(samples)) {
const { text } = renderCaption(config, { weather, capturedAt: new Date().toISOString(),
const { text, replyText } = renderCaption(config, { weather, capturedAt: new Date().toISOString(),
sunrise: dailySchedule(new Date()).sunrise.toISOString(), url: new URL(site.siteUrl).origin, test: false });
console.log(`\n[${condition}]\n${text}`);
if (replyText) console.log(`\n[댓글]\n${replyText}`);
}