fix: simplify like post content and create as draft

Content is now "Title - Author" instead of "Liked X by Y on YouTube".
Posts are created with post-status: draft so they can be reviewed
before publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-18 22:25:59 +01:00
parent c0563cfca1
commit cc3551f3f5

View File

@@ -169,15 +169,15 @@ export async function syncLikes({ db, youtubeConfig, publication, postsCollectio
"post-type": "like", "post-type": "like",
"mp-slug": slug, "mp-slug": slug,
"like-of": videoUrl, "like-of": videoUrl,
name: `Liked "${video.title}" by ${video.channelTitle}`, name: `${video.title} - ${video.channelTitle}`,
content: { content: {
text: `Liked "${video.title}" by ${video.channelTitle} on YouTube`, text: `${video.title} - ${video.channelTitle}`,
html: `Liked "<a href="${videoUrl}">${escapeHtml(video.title)}</a>" by ${escapeHtml(video.channelTitle)} on YouTube`, html: `<a href="${videoUrl}">${escapeHtml(video.title)}</a> - ${escapeHtml(video.channelTitle)}`,
}, },
published: new Date().toISOString(), published: new Date().toISOString(),
url: postUrl, url: postUrl,
visibility: "public", visibility: "public",
"post-status": "published", "post-status": "draft",
"youtube-video-id": videoId, "youtube-video-id": videoId,
"youtube-channel": video.channelTitle, "youtube-channel": video.channelTitle,
"youtube-thumbnail": video.thumbnail || "", "youtube-thumbnail": video.thumbnail || "",