diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 11:25:52 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 11:25:52 -0600 |
commit | 7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (patch) | |
tree | 38ad7a0c586caa6cd0635653cb812d602210b718 /src/lib/extractHtmlMeta.ts | |
parent | c4ba5e7fd507a2f5295fd3fcbcea0796223c744c (diff) | |
download | voidsky-7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8.tar.zst |
Fix all type errors
Diffstat (limited to 'src/lib/extractHtmlMeta.ts')
-rw-r--r-- | src/lib/extractHtmlMeta.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extractHtmlMeta.ts b/src/lib/extractHtmlMeta.ts index 038ca81c6..70387f71d 100644 --- a/src/lib/extractHtmlMeta.ts +++ b/src/lib/extractHtmlMeta.ts @@ -63,7 +63,7 @@ export const extractHtmlMeta = ({ // Workaround for some websites not having a title or description in the meta tags in the initial serve if (isYoutubeUrl) { res = {...res, ...extractYoutubeMeta(html)} - } else if (isTwitterUrl) { + } else if (isTwitterUrl && pathname) { res = {...extractTwitterMeta({pathname})} } |