about summary refs log tree commit diff
path: root/src/lib/extractHtmlMeta.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 11:25:52 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 11:25:52 -0600
commit7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (patch)
tree38ad7a0c586caa6cd0635653cb812d602210b718 /src/lib/extractHtmlMeta.ts
parentc4ba5e7fd507a2f5295fd3fcbcea0796223c744c (diff)
downloadvoidsky-7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8.tar.zst
Fix all type errors
Diffstat (limited to 'src/lib/extractHtmlMeta.ts')
-rw-r--r--src/lib/extractHtmlMeta.ts2
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})}
   }