Bluesky app fork with some witchin' additions 💫

use dids in urls

commit 64e13cf5bfb8c04837e665f0afb6b5ce1c7c6a63
Author: Aviva Ruben <aviva@rubenfamily.com>
Date: Mon Apr 21 09:57:19 2025 -0500

share with did and deer link

Aviva Ruben c4bb3190 c5b1dc0b

+4 -10
+2 -8
src/lib/routes/links.ts
··· 1 - import {AppBskyGraphDefs, AtUri} from '@atproto/api' 2 - 3 - import {isInvalidHandle} from '#/lib/strings/handles' 1 + import {type AppBskyGraphDefs, AtUri} from '@atproto/api' 4 2 5 3 export function makeProfileLink( 6 4 info: { ··· 9 7 }, 10 8 ...segments: string[] 11 9 ) { 12 - let handleSegment = info.did 13 - if (info.handle && !isInvalidHandle(info.handle)) { 14 - handleSegment = info.handle 15 - } 16 - return [`/profile`, handleSegment, ...segments].join('/') 10 + return [`/profile`, info.did, ...segments].join('/') 17 11 } 18 12 19 13 export function makeCustomFeedLink(
+2 -2
src/lib/strings/url-helpers.ts
··· 7 7 import {startUriToStarterPackUri} from '#/lib/strings/starter-pack' 8 8 import {logger} from '#/logger' 9 9 10 - export const BSKY_APP_HOST = 'https://bsky.app' 10 + export const BSKY_APP_HOST = 'https://deer.social' 11 11 const BSKY_TRUSTED_HOSTS = [ 12 12 'bsky\\.app', 13 13 'bsky\\.social', ··· 79 79 80 80 export function toShareUrl(url: string): string { 81 81 if (!url.startsWith('https')) { 82 - const urlp = new URL('https://bsky.app') 82 + const urlp = new URL('https://deer.social') 83 83 urlp.pathname = url 84 84 url = urlp.toString() 85 85 }