Bluesky app fork with some witchin' additions 💫

revert "pdsAgent" change from age assurance

authored by daniela.lol and committed by tangled.org 972f4e0f e1ab48f2

+2 -4
+1 -2
src/ageAssurance/data.tsx
··· 20 20 snoozeBirthdateUpdateAllowedForDid, 21 21 } from '#/state/birthdate' 22 22 import {useAgent, useSession} from '#/state/session' 23 - import {pdsAgent} from '#/state/session/agent' 24 23 import * as debug from '#/ageAssurance/debug' 25 24 import {logger} from '#/ageAssurance/logger' 26 25 import { ··· 337 336 agent: AtpAgent 338 337 }): Promise<OtherRequiredData> { 339 338 if (debug.enabled) return debug.resolve(debug.otherRequiredData) 340 - const [prefs] = await Promise.all([pdsAgent(agent).getPreferences()]) 339 + const [prefs] = await Promise.all([agent.getPreferences()]) 341 340 const data: OtherRequiredData = { 342 341 birthdate: prefs.birthDate ? prefs.birthDate.toISOString() : undefined, 343 342 }
+1 -2
src/ageAssurance/useBeginAgeAssurance.ts
··· 10 10 } from '#/lib/constants' 11 11 import {isNetworkError} from '#/lib/hooks/useCleanError' 12 12 import {useAgent} from '#/state/session' 13 - import {pdsAgent} from '#/state/session/agent' 14 13 import {usePatchAgeAssuranceServerState} from '#/ageAssurance' 15 14 import {logger} from '#/ageAssurance/logger' 16 15 import {BLUESKY_PROXY_DID} from '#/env' ··· 39 38 40 39 const { 41 40 data: {token}, 42 - } = await pdsAgent(agent).com.atproto.server.getServiceAuth({ 41 + } = await agent.com.atproto.server.getServiceAuth({ 43 42 aud: BLUESKY_PROXY_DID, 44 43 lxm: `app.bsky.ageassurance.begin`, 45 44 })