about summary refs log tree commit diff
path: root/src/lib/strings/url-helpers.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-16 10:02:41 -0700
committerGitHub <noreply@github.com>2023-08-16 10:02:41 -0700
commit79a68197697bfbeb2b942c6733d83a17dfc3e09b (patch)
tree056ab448015178c4eb248bceb6d8f2b9c3ead9fe /src/lib/strings/url-helpers.ts
parent884e5c92944a4d53c7e0d2847eabd576b080b4ae (diff)
downloadvoidsky-79a68197697bfbeb2b942c6733d83a17dfc3e09b.tar.zst
Tune up the link card to look nicer, show more info, and layout horizontally on web to user space more nicely (#1190)
Diffstat (limited to 'src/lib/strings/url-helpers.ts')
-rw-r--r--src/lib/strings/url-helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
index 105c631bf..1406e2af0 100644
--- a/src/lib/strings/url-helpers.ts
+++ b/src/lib/strings/url-helpers.ts
@@ -30,7 +30,7 @@ export function toNiceDomain(url: string): string {
     if (`https://${urlp.host}` === PROD_SERVICE) {
       return 'Bluesky Social'
     }
-    return urlp.host
+    return urlp.host ? urlp.host : url
   } catch (e) {
     return url
   }