about summary refs log tree commit diff
path: root/src/lib/strings/url-helpers.ts
diff options
context:
space:
mode:
authorMinseo Lee <itoupluk427@gmail.com>2024-02-22 09:37:09 +0900
committerGitHub <noreply@github.com>2024-02-22 09:37:09 +0900
commitc2d87b807554f11cb99694d4b0ccb86905d468c0 (patch)
tree7bb610b7f4cea62d8b28625ff9814e38cb12079f /src/lib/strings/url-helpers.ts
parent6d422bb583bf8946d92fe270b1fe5c760251f0cc (diff)
parent874489b40227b2ce302e6be840e536e82847842f (diff)
downloadvoidsky-c2d87b807554f11cb99694d4b0ccb86905d468c0.tar.zst
Merge branch 'bluesky-social:main' into patch-3
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