Skip to content

Commit

Permalink
Remove SDK enforcement of max labelers (NOTE: still enforced server s…
Browse files Browse the repository at this point in the history
…ide) (#2582)

* Remove SDK enforcement of max labelers (NOTE: still enforced server side)

* Add changeset
  • Loading branch information
pfrazee authored Jun 18, 2024
1 parent 8b4f585 commit ea0f10b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-taxis-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/api": patch
---

Remove client-side enforcement of labeler limits
3 changes: 1 addition & 2 deletions packages/api/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
} from './types'
import { BSKY_LABELER_DID } from './const'

const MAX_LABELERS = 10
const REFRESH_SESSION = 'com.atproto.server.refreshSession'

/**
Expand Down Expand Up @@ -284,7 +283,7 @@ export class AtpAgent {

reqHeaders = {
...reqHeaders,
[labelerHeaderName]: labelerHeaders.slice(0, MAX_LABELERS).join(', '),
[labelerHeaderName]: labelerHeaders.join(', '),
}

return reqHeaders
Expand Down

0 comments on commit ea0f10b

Please sign in to comment.