diff --git a/compute-js/src/index.js b/compute-js/src/index.js index e8c3b237..875a08aa 100644 --- a/compute-js/src/index.js +++ b/compute-js/src/index.js @@ -771,8 +771,8 @@ async function handleSubdomainProfile(subdomain, url, request, originalHostname) const userScript = ``; // Update OG tags for the profile - const ogTitle = divineUser.displayName + ' on diVine'; - const ogDescription = divineUser.about || `Watch ${divineUser.displayName}'s videos on diVine`; + const ogTitle = divineUser.displayName + ' on Divine'; + const ogDescription = divineUser.about || `Watch ${divineUser.displayName}'s videos on Divine`; const ogImage = divineUser.picture || 'https://divine.video/og.png'; const ogUrl = `https://${subdomain}.${apexDomain}/`; @@ -982,15 +982,15 @@ async function fetchVideoMetadata(videoId) { description = content.trim(); } else if (statsList.length > 0) { // Show engagement stats - description = `${statsList.join(' • ')} on diVine`; + description = `${statsList.join(' • ')} on Divine`; } else { - description = 'Watch this short video on diVine'; + description = 'Watch this short video on Divine'; } console.log('Fetched video metadata - title:', title, 'thumbnail:', thumbnail); return { - title: title || 'Video on diVine', + title: title || 'Video on Divine', description: description, thumbnail: thumbnail || 'https://divine.video/og.avif', authorName: getTag('author') || '', @@ -1018,8 +1018,8 @@ async function handleVideoOgTags(request, videoId, url) { } // Default meta values if video not found - const title = videoMeta?.title || 'Video on diVine'; - const description = videoMeta?.description || 'Watch this video on diVine - Short-form looping videos on Nostr'; + const title = videoMeta?.title || 'Video on Divine'; + const description = videoMeta?.description || 'Watch this video on Divine - Short-form looping videos on Nostr'; const thumbnail = videoMeta?.thumbnail || 'https://divine.video/og.avif'; const authorName = videoMeta?.authorName || ''; const videoUrl = `https://divine.video/video/${videoId}`; @@ -1033,7 +1033,7 @@ async function handleVideoOgTags(request, videoId, url) { - ${escapeHtml(title)} - diVine + ${escapeHtml(title)} - Divine @@ -1043,7 +1043,7 @@ async function handleVideoOgTags(request, videoId, url) { - + diff --git a/functions/[[path]].test.ts b/functions/[[path]].test.ts index b10cbf40..2a9950a7 100644 --- a/functions/[[path]].test.ts +++ b/functions/[[path]].test.ts @@ -5,16 +5,16 @@ import { onRequest } from './[[path]]'; const INDEX_HTML = ` - diVine Web - Short-form Looping Videos on Nostr + Divine Web - Short-form Looping Videos on Nostr - + - + - + @@ -98,7 +98,7 @@ describe('functions/[[path]]', () => { const html = await response.text(); expect(response.status).toBe(200); - expect(html).toContain(`${'diVine Web - Short-form Looping Videos on Nostr'}`); + expect(html).toContain(`${'Divine Web - Short-form Looping Videos on Nostr'}`); expect(html).not.toContain('property="og:video"'); }); }); diff --git a/functions/[[path]].ts b/functions/[[path]].ts index ae820b15..1a348bc4 100644 --- a/functions/[[path]].ts +++ b/functions/[[path]].ts @@ -156,13 +156,13 @@ async function fetchVideoMeta(url: URL): Promise { const title = getTagValue(payload.event.tags, 'title') || getTagValue(payload.event.tags, 'alt') - || 'Video on diVine'; + || 'Video on Divine'; const authorName = payload.stats?.author_name; const description = truncateText( getTagValue(payload.event.tags, 'summary') || payload.event.content || getTagValue(payload.event.tags, 'alt') - || (authorName ? `Watch this video by ${authorName} on diVine` : 'Watch this video on diVine'), + || (authorName ? `Watch this video by ${authorName} on Divine` : 'Watch this video on Divine'), 200 ); const media = parseImeta(payload.event.tags);