tangled
alpha
login
or
join now
daniela.lol
/
witchsky.app
forked from
jollywhoppers.com/witchsky.app
0
fork
atom
Bluesky app fork with some witchin' additions 💫
0
fork
atom
overview
issues
pulls
pipelines
revert "pdsAgent" change from age assurance
daniela.lol
2 months ago
b9f4ecd9
e1ab48f2
verified
This commit was signed with the committer's
known signature
.
daniela.lol
SSH Key Fingerprint:
SHA256:hDZNP/SivA4B+nXJfcGRZnWjV0crLCjKVF2oVJiZcUI=
+2
-4
2 changed files
expand all
collapse all
unified
split
src
ageAssurance
data.tsx
useBeginAgeAssurance.ts
+1
-2
src/ageAssurance/data.tsx
reviewed
···
20
20
snoozeBirthdateUpdateAllowedForDid,
21
21
} from '#/state/birthdate'
22
22
import {useAgent, useSession} from '#/state/session'
23
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
340
-
const [prefs] = await Promise.all([pdsAgent(agent).getPreferences()])
339
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
reviewed
···
10
10
} from '#/lib/constants'
11
11
import {isNetworkError} from '#/lib/hooks/useCleanError'
12
12
import {useAgent} from '#/state/session'
13
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
42
-
} = await pdsAgent(agent).com.atproto.server.getServiceAuth({
41
41
+
} = await agent.com.atproto.server.getServiceAuth({
43
42
aud: BLUESKY_PROXY_DID,
44
43
lxm: `app.bsky.ageassurance.begin`,
45
44
})