diff --git a/backend/src/embeds.ts b/backend/src/embeds.ts index feb84cb..8823f1c 100644 --- a/backend/src/embeds.ts +++ b/backend/src/embeds.ts @@ -28,19 +28,15 @@ function pageTitle(video: VideoEntry): string { } function ogTitle(video: VideoEntry): string { - return mapDisplayName(video.mapName); -} - -function ogDescription(video: VideoEntry): string { - const parts: string[] = [formatRunTime(video.runTime)]; + const parts: string[] = [mapDisplayName(video.mapName)]; if (video.tier != null) parts.push(`Tier ${video.tier}`); + parts.push(formatRunTime(video.runTime)); return parts.join(" ยท "); } function buildOgsHtml(video: VideoEntry): string { const runUrl = `${BASE_URL}/run/${video.id}`; const title = ogTitle(video); - const description = ogDescription(video); const oembedUrl = `${BASE_URL}/api/oembed/${video.id}`; const thumbnailUrl = video.thumbnailKey @@ -51,7 +47,6 @@ function buildOgsHtml(video: VideoEntry): string { let tags = ` \n` + ` \n` + - ` \n` + ` \n` + ` \n` + ` \n` + @@ -72,8 +67,7 @@ function buildOgsHtml(video: VideoEntry): string { tags += `\n \n` + - ` \n` + - ` `; + ` `; if (thumbnailUrl) { tags += `\n `; @@ -86,8 +80,6 @@ export interface OembedResponse { type: string; version: string; title: string; - author_name: string; - author_url: string; provider_name: string; provider_url: string; thumbnail_url?: string; @@ -106,8 +98,6 @@ export function getOembed(id: string): OembedResponse | null { type: "video", version: "1.0", title: ogTitle(video), - author_name: video.playerName, - author_url: `https://dashboard.momentum-mod.org/maps/${video.mapName}`, provider_name: "surf.nathan.rip", provider_url: BASE_URL, thumbnail_url: thumbnailUrl,