back interdiff of round #1 and #0

fix: ensure com.atproto.* calls go through without proxying #35

open
opened by mary.my.id targeting main

atproto-proxy behavior seems ambiguous right now, it's not really clear whether PDS implementors should interpret atproto-proxy before or after PDS' own route handlers. This PR ensures that com.atproto.* calls go through without a proxy set (with some exception)

ERROR
src/ageAssurance/data.tsx

Failed to calculate interdiff for this file.

ERROR
src/components/live/queries.ts

Failed to calculate interdiff for this file.

ERROR
src/lib/api/index.ts

Failed to calculate interdiff for this file.

ERROR
src/lib/generate-starterpack.ts

Failed to calculate interdiff for this file.

ERROR
src/screens/Onboarding/util.ts

Failed to calculate interdiff for this file.

ERROR
src/state/queries/list.ts

Failed to calculate interdiff for this file.

ERROR
src/state/queries/messages/actor-declaration.ts

Failed to calculate interdiff for this file.

ERROR
src/state/queries/postgate/index.ts

Failed to calculate interdiff for this file.

REBASED
src/state/queries/preferences/index.ts

This patch was likely rebased, as context lines do not match.

ERROR
src/state/queries/starter-packs.ts

Failed to calculate interdiff for this file.

ERROR
src/state/queries/threadgate/index.ts

Failed to calculate interdiff for this file.

ERROR
src/state/session/agent.ts

Failed to calculate interdiff for this file.

REBASED
src/state/session/index.tsx

This patch was likely rebased, as context lines do not match.

ERROR
src/ageAssurance/useBeginAgeAssurance.ts

Failed to calculate interdiff for this file.

ERROR
src/components/dialogs/EmailDialog/data/useConfirmEmail.ts

Failed to calculate interdiff for this file.

ERROR
src/components/dialogs/EmailDialog/data/useManageEmail2FA.ts

Failed to calculate interdiff for this file.

ERROR
src/components/dialogs/EmailDialog/data/useRequestEmailUpdate.ts

Failed to calculate interdiff for this file.

ERROR
src/components/dialogs/EmailDialog/data/useRequestEmailVerification.ts

Failed to calculate interdiff for this file.

ERROR
src/components/dialogs/EmailDialog/data/useUpdateEmail.ts

Failed to calculate interdiff for this file.

ERROR
src/components/intents/VerifyEmailIntentDialog.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/Deactivated.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/Settings/components/ChangePasswordDialog.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/Settings/components/DeactivateAccountDialog.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/Settings/components/DisableEmail2FADialog.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/Settings/components/ExportCarDialog.tsx

Failed to calculate interdiff for this file.

ERROR
src/screens/SignupQueued.tsx

Failed to calculate interdiff for this file.

ERROR
src/state/queries/app-passwords.ts

Failed to calculate interdiff for this file.

REBASED
src/view/com/modals/DeleteAccount.tsx

This patch was likely rebased, as context lines do not match.

NEW
src/lib/media/video/upload.shared.ts
··· 3 3 import {msg} from '@lingui/macro' 4 4 5 5 import {VIDEO_SERVICE_DID} from '#/lib/constants' 6 + import {pdsAgent} from '#/state/session/agent' 6 7 import {UploadLimitError} from '#/lib/media/video/errors' 7 8 import {getServiceAuthAudFromUrl} from '#/lib/strings/url-helpers' 8 9 import {createVideoAgent} from './util' ··· 22 23 if (!pdsAud) { 23 24 throw new Error('Agent does not have a PDS URL') 24 25 } 25 - const {data: serviceAuth} = await agent.com.atproto.server.getServiceAuth({ 26 + const {data: serviceAuth} = await pdsAgent(agent).com.atproto.server.getServiceAuth({ 26 27 aud: aud ?? pdsAud, 27 28 lxm, 28 29 exp,