diff --git a/lib/likes-sync.js b/lib/likes-sync.js index bb47184..a7a2a2a 100644 --- a/lib/likes-sync.js +++ b/lib/likes-sync.js @@ -190,10 +190,6 @@ export async function syncLikes({ db, youtubeConfig, publication, postsCollectio "mp-slug": slug, "like-of": videoUrl, name: `${video.title} - ${video.channelTitle}`, - content: { - text: `${video.title} - ${video.channelTitle}`, - html: `${escapeHtml(video.title)} - ${escapeHtml(video.channelTitle)}`, - }, published: new Date().toISOString(), url: postUrl, visibility: "public", @@ -300,12 +296,4 @@ export function startLikesSync(Indiekit, options) { run().catch(() => {}); setInterval(() => run().catch(() => {}), interval); }, 15_000); -} - -function escapeHtml(str) { - return String(str) - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """); -} +} \ No newline at end of file