Tune up the link card to look nicer, show more info, and layout horizontally on web to user space more nicely (#1190)

This commit is contained in:
Paul Frazee 2023-08-16 10:02:41 -07:00 committed by GitHub
parent 884e5c9294
commit 79a6819769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 17 deletions

View file

@ -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
}