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:
parent
884e5c9294
commit
79a6819769
2 changed files with 36 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue