Skip to content

Commit

Permalink
edit oembed title
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Nov 1, 2023
1 parent 9f51c24 commit bf087af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/oembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const onRequest: PgFunction = async function (context) {
version: '1.0',
provider_name: 'LiveCodes',
provider_url: 'https://livecodes.io',
title: title ? title + ' - LiveCodes' : 'LiveCodes',
title: !title || title === 'Untitled Project' ? 'LiveCodes' : title + ' - LiveCodes',
height: maxHeight && maxHeight < 300 ? String(maxHeight) : '300',
width: maxWidth && maxWidth < 800 ? String(maxWidth) : '800',
thumbnail_width: String(thumbnailWidth),
Expand Down

0 comments on commit bf087af

Please sign in to comment.