about summary refs log tree commit diff
path: root/src/lib/strings/url-helpers.ts
diff options
context:
space:
mode:
authorJan-Olof Eriksson <jan-olof.eriksson@iki.fi>2024-02-21 13:22:13 +0200
committerGitHub <noreply@github.com>2024-02-21 13:22:13 +0200
commit38fd4282f88ac020ee72d5a6324191ee80798450 (patch)
tree18f713fed78387f1cb83ac0818b4f1333fad6db8 /src/lib/strings/url-helpers.ts
parent1269e76071ea7c79b93d1a58e80b74746c71ecd9 (diff)
parentf88b16525498584f81ea7f594a63623fc5dc7ce9 (diff)
downloadvoidsky-38fd4282f88ac020ee72d5a6324191ee80798450.tar.zst
Merge branch 'bluesky-social:main' into main
Diffstat (limited to 'src/lib/strings/url-helpers.ts')
-rw-r--r--src/lib/strings/url-helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
index 8a71718c8..ef341154d 100644
--- a/src/lib/strings/url-helpers.ts
+++ b/src/lib/strings/url-helpers.ts
@@ -1,5 +1,5 @@
 import {AtUri} from '@atproto/api'
-import {PROD_SERVICE} from 'lib/constants'
+import {BSKY_SERVICE} from 'lib/constants'
 import TLDs from 'tlds'
 import psl from 'psl'
 
@@ -28,7 +28,7 @@ export function makeRecordUri(
 export function toNiceDomain(url: string): string {
   try {
     const urlp = new URL(url)
-    if (`https://${urlp.host}` === PROD_SERVICE) {
+    if (`https://${urlp.host}` === BSKY_SERVICE) {
       return 'Bluesky Social'
     }
     return urlp.host ? urlp.host : url