Mirror — see github.com/blacksky-algorithms/blacksky.community
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert alternate appview settings to use Bluesky services

Changes reverted to use official Bluesky services:
- PUBLIC_BSKY_SERVICE: api.blacksky.community -> public.api.bsky.app
- PUBLIC_APPVIEW: api.blacksky.community -> api.bsky.app
- PUBLIC_APPVIEW_DID: did:web:api.blacksky.community -> did:web:api.bsky.app
- BLUESKY_PROXY_DID: did:web:api.blacksky.community -> did:web:api.bsky.app
- VIDEO_SERVICE: video.blacksky.community -> video.bsky.app
- VIDEO_MAX_DURATION_MS: 60 min -> 3 min (Bluesky default)
- VIDEO_MAX_SIZE: 5GB -> 100MB (Bluesky default)
- BSKY_DOWNLOAD_URL: staging.blacksky.community -> blacksky.community
- Removed ALT_PROXY_DID and related trending feed routing logic
- Removed DEV_ENV_APPVIEW_DID

This update brings in all the appview branch improvements (OAuth, DM fixes,
upstream merges, branding) while keeping the app connected to Bluesky's
official services.

+30 -38
+1 -1
bskyembed/index.html
··· 4 4 <meta charset="UTF-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 6 <title>Bluesky Embed</title> 7 - <link rel="preconnect" href="https://api.blacksky.community"> 7 + <link rel="preconnect" href="https://api.bsky.app"> 8 8 <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> 9 9 <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> 10 10 <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
+1 -1
bskyembed/post.html
··· 4 4 <meta charset="UTF-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 6 <title>Blacksky Embed</title> 7 - <link rel="preconnect" href="https://api.blacksky.community"> 7 + <link rel="preconnect" href="https://api.bsky.app"> 8 8 <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> 9 9 <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> 10 10 <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
+1 -1
bskyembed/src/screens/landing.tsx
··· 31 31 initSystemColorMode() 32 32 33 33 const agent = new AtpAgent({ 34 - service: 'https://api.blacksky.community', 34 + service: 'https://api.bsky.app', 35 35 }) 36 36 37 37 render(<LandingPage />, root)
+1 -1
bskyembed/src/screens/post.tsx
··· 14 14 if (!root) throw new Error('No root element') 15 15 16 16 const agent = new AtpAgent({ 17 - service: 'https://api.blacksky.community', 17 + service: 'https://api.bsky.app', 18 18 }) 19 19 20 20 const uri = `at://${window.location.pathname.slice('/embed/'.length)}`
+1 -1
bskyogcard/src/config.ts
··· 35 35 port: env.port ?? 3000, 36 36 metricsPort: env.metricsPort ?? 3001, 37 37 version: env.version, 38 - appviewUrl: env.appviewUrl ?? 'https://api.blacksky.community', 38 + appviewUrl: env.appviewUrl ?? 'https://api.bsky.app', 39 39 originVerify: env.originVerify, 40 40 } 41 41 return {
+1 -1
bskyweb/cmd/embedr/main.go
··· 36 36 &cli.StringFlag{ 37 37 Name: "appview-host", 38 38 Usage: "method, hostname, and port of PDS instance", 39 - Value: "https://api.blacksky.community", 39 + Value: "https://api.bsky.app", 40 40 EnvVars: []string{"ATP_APPVIEW_HOST"}, 41 41 }, 42 42 &cli.StringFlag{
+1 -1
bskyweb/example.env
··· 1 1 GOLOG_LOG_LEVEL=info 2 - ATP_APPVIEW_HOST=https://api.blacksky.community 2 + ATP_APPVIEW_HOST=https://api.bsky.app
+1 -1
docs/build.md
··· 135 135 cd bskyweb/ 136 136 go mod tidy 137 137 go build -v -tags timetzdata -o bskyweb ./cmd/bskyweb 138 - ./bskyweb serve --appview-host=https://api.blacksky.community 138 + ./bskyweb serve --appview-host=https://api.bsky.app 139 139 ``` 140 140 141 141 On build success, access the application at [http://localhost:8100/](http://localhost:8100/). Subsequent changes require re-running the above steps in order to be reflected.
+1 -1
functions/profile/[handleOrDID].ts
··· 136 136 } 137 137 138 138 export async function onRequest(context) { 139 - const agent = new AtpAgent({service: 'https://api.blacksky.community/'}) 139 + const agent = new AtpAgent({service: 'https://api.bsky.app/'}) 140 140 const {request, env} = context 141 141 const origin = new URL(request.url).origin 142 142
+1 -1
functions/profile/[handleOrDID]/post/[rkey].ts
··· 198 198 } 199 199 200 200 export async function onRequest(context) { 201 - const agent = new AtpAgent({service: 'https://api.blacksky.community/'}) 201 + const agent = new AtpAgent({service: 'https://api.bsky.app/'}) 202 202 const {request, env} = context 203 203 const origin = new URL(request.url).origin 204 204 const {handleOrDID, rkey}: {handleOrDID: string; rkey: string} =
+1 -2
src/env/common.ts
··· 76 76 * The DID of the Bluesky appview to proxy to 77 77 */ 78 78 export const BLUESKY_PROXY_DID: Did = 79 - process.env.EXPO_PUBLIC_BLUESKY_PROXY_DID || 'did:web:api.blacksky.community' 80 - export const ALT_PROXY_DID: Did = 'did:web:api.bsky.app' 79 + process.env.EXPO_PUBLIC_BLUESKY_PROXY_DID || 'did:web:api.bsky.app' 81 80 82 81 /** 83 82 * The DID of the chat service to proxy to
+2 -8
src/lib/api/feed/utils.ts
··· 2 2 3 3 import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants' 4 4 import {type UsePreferencesQueryResponse} from '#/state/queries/preferences' 5 - import {ALT_PROXY_DID, IS_WEB} from '#/env' 6 - 7 - const TRENDING_FEED_DID = 'did:plc:qrz3lhbyuxbeilrc6nekdqme' 8 - const PROXY_TO_BLUESKY = `${ALT_PROXY_DID}#bsky_appview` 5 + import {IS_WEB} from '#/env' 9 6 10 7 let debugTopics = '' 11 8 if (IS_WEB && typeof window !== 'undefined') { ··· 30 27 return BSKY_FEED_OWNER_DIDS.includes(uri.host) 31 28 } 32 29 33 - export function getProxyHeadersForFeed(feedUri: string) { 34 - if (feedUri.includes(TRENDING_FEED_DID)) { 35 - return {'atproto-proxy': PROXY_TO_BLUESKY} 36 - } 30 + export function getProxyHeadersForFeed(_feedUri: string) { 37 31 return {} 38 32 }
+8 -9
src/lib/constants.ts
··· 9 9 export const STAGING_SERVICE = 'https://staging.bsky.dev' 10 10 export const BSKY_SERVICE = 'https://blacksky.app' 11 11 export const BSKY_SERVICE_DID = 'did:web:bsky.social' 12 - export const PUBLIC_BSKY_SERVICE = 'https://api.blacksky.community' 12 + export const PUBLIC_BSKY_SERVICE = 'https://public.api.bsky.app' 13 13 export const DEFAULT_SERVICE = BSKY_SERVICE 14 14 export const HELP_DESK_URL = `https://github.com/blacksky-algorithms/blacksky.community/issues/new/choose` 15 15 export const EMBED_SERVICE = 'https://embed.bsky.app' 16 16 export const EMBED_SCRIPT = `${EMBED_SERVICE}/static/embed.js` 17 - export const BSKY_DOWNLOAD_URL = 'https://staging.blacksky.community/download' 17 + export const BSKY_DOWNLOAD_URL = 'https://blacksky.community/download' 18 18 export const STARTER_PACK_MAX_SIZE = 150 19 19 export const CARD_ASPECT_RATIO = 1200 / 630 20 20 ··· 164 164 165 165 export const MAX_LABELERS = 20 166 166 167 - export const VIDEO_SERVICE = 'https://video.blacksky.community' 168 - export const VIDEO_SERVICE_DID = 'did:web:video.blacksky.community' 167 + export const VIDEO_SERVICE = 'https://video.bsky.app' 168 + export const VIDEO_SERVICE_DID = 'did:web:video.bsky.app' 169 169 170 - export const VIDEO_MAX_DURATION_MS = 60 * 60 * 1000 // 60 minutes in milliseconds 170 + export const VIDEO_MAX_DURATION_MS = 3 * 60 * 1000 // 3 minutes in milliseconds 171 171 /** 172 172 * Maximum size of a video in megabytes, _not_ mebibytes. Backend uses 173 173 * ISO megabytes. 174 174 */ 175 - export const VIDEO_MAX_SIZE = 1000 * 1000 * 1000 * 5 // 5gb 175 + export const VIDEO_MAX_SIZE = 1000 * 1000 * 100 // 100mb 176 176 177 177 export const SUPPORTED_MIME_TYPES = [ 178 178 'video/mp4', ··· 202 202 }, 203 203 } 204 204 205 - export const PUBLIC_APPVIEW = 'https://api.blacksky.community' 206 - export const PUBLIC_APPVIEW_DID = 'did:web:api.blacksky.community' 205 + export const PUBLIC_APPVIEW = 'https://api.bsky.app' 206 + export const PUBLIC_APPVIEW_DID = 'did:web:api.bsky.app' 207 207 export const PUBLIC_STAGING_APPVIEW_DID = 'did:web:api.staging.bsky.dev' 208 208 209 209 export const DEV_ENV_APPVIEW = `http://localhost:2584` // always the same 210 - export const DEV_ENV_APPVIEW_DID = `did:plc:dw4kbjf5mn7nhenabiqpkyh3` // always the same 211 210 212 211 // temp hack for e2e - esb 213 212 export const BLUESKY_PROXY_HEADER = {
+9 -9
src/state/session/__tests__/session-test.ts
··· 26 26 "accounts": [], 27 27 "currentAgentState": { 28 28 "agent": { 29 - "service": "https://api.blacksky.community/", 29 + "service": "https://api.bsky.app/", 30 30 }, 31 31 "did": undefined, 32 32 }, ··· 115 115 ], 116 116 "currentAgentState": { 117 117 "agent": { 118 - "service": "https://api.blacksky.community/", 118 + "service": "https://api.bsky.app/", 119 119 }, 120 120 "did": undefined, 121 121 }, ··· 453 453 ], 454 454 "currentAgentState": { 455 455 "agent": { 456 - "service": "https://api.blacksky.community/", 456 + "service": "https://api.bsky.app/", 457 457 }, 458 458 "did": undefined, 459 459 }, ··· 515 515 ], 516 516 "currentAgentState": { 517 517 "agent": { 518 - "service": "https://api.blacksky.community/", 518 + "service": "https://api.bsky.app/", 519 519 }, 520 520 "did": undefined, 521 521 }, ··· 608 608 "accounts": [], 609 609 "currentAgentState": { 610 610 "agent": { 611 - "service": "https://api.blacksky.community/", 611 + "service": "https://api.bsky.app/", 612 612 }, 613 613 "did": undefined, 614 614 }, ··· 788 788 ], 789 789 "currentAgentState": { 790 790 "agent": { 791 - "service": "https://api.blacksky.community/", 791 + "service": "https://api.bsky.app/", 792 792 }, 793 793 "did": undefined, 794 794 }, ··· 1437 1437 ], 1438 1438 "currentAgentState": { 1439 1439 "agent": { 1440 - "service": "https://api.blacksky.community/", 1440 + "service": "https://api.bsky.app/", 1441 1441 }, 1442 1442 "did": undefined, 1443 1443 }, ··· 1503 1503 ], 1504 1504 "currentAgentState": { 1505 1505 "agent": { 1506 - "service": "https://api.blacksky.community/", 1506 + "service": "https://api.bsky.app/", 1507 1507 }, 1508 1508 "did": undefined, 1509 1509 }, ··· 1666 1666 ], 1667 1667 "currentAgentState": { 1668 1668 "agent": { 1669 - "service": "https://api.blacksky.community/", 1669 + "service": "https://api.bsky.app/", 1670 1670 }, 1671 1671 "did": undefined, 1672 1672 },