diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index e484aeb54b..522202d34e 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -177,16 +177,11 @@ export async function post( } try { - await pdsClient.call( - com.atproto.repo.applyWrites, - { - repo: did, - writes: writes, - validate: true, - }, - // service: null strips the appview proxy header - this must hit the account host (PDS) - {service: null}, - ) + await pdsClient.call(com.atproto.repo.applyWrites, { + repo: did, + writes: writes, + validate: true, + }) } catch (err) { const e = err as Error logger.error(`Failed to create post`, { diff --git a/src/lib/media/video/upload.shared.ts b/src/lib/media/video/upload.shared.ts index 8193822236..0e7542a6cb 100644 --- a/src/lib/media/video/upload.shared.ts +++ b/src/lib/media/video/upload.shared.ts @@ -40,16 +40,11 @@ export async function getServiceAuthToken({ } resolvedAud = pdsAud } - const {token} = await client.call( - com.atproto.server.getServiceAuth, - { - aud: resolvedAud, - lxm, - exp, - }, - // service: null strips the appview proxy header - this must hit the account host (PDS) - {service: null}, - ) + const {token} = await client.call(com.atproto.server.getServiceAuth, { + aud: resolvedAud, + lxm, + exp, + }) return token } diff --git a/src/screens/Onboarding/util.ts b/src/screens/Onboarding/util.ts index df9248ace0..e026a99894 100644 --- a/src/screens/Onboarding/util.ts +++ b/src/screens/Onboarding/util.ts @@ -37,15 +37,10 @@ export async function bulkWriteFollows( const chunks = chunk(followWrites, 50) for (const chunk of chunks) { - await pdsClient.call( - com.atproto.repo.applyWrites, - { - repo: did, - writes: chunk, - }, - // service: null strips the appview proxy header - this must hit the account host (PDS) - {service: null}, - ) + await pdsClient.call(com.atproto.repo.applyWrites, { + repo: did, + writes: chunk, + }) } await whenFollowsIndexed(appviewClient, did, res => !!res.follows.length)