Skip to content

Commit

Permalink
Remove max labelers count limit (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Jul 2, 2024
1 parent 1fa993e commit 37e6c8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/atproto_client/client/methods_mixin/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import typing_extensions as te
from atproto_core.exceptions import AtProtocolError

_MAX_LABELERS_COUNT = 10
_ATPROTO_PROXY_HEADER = 'atproto-proxy'
_ATPROTO_ACCEPT_LABELERS_HEADER = 'atproto-accept-labelers'

Expand Down Expand Up @@ -71,7 +70,7 @@ def configure_labelers_header(self, labeler_dids: t.List[str]) -> None:
labeler_dids: The DIDs of the labelers.
"""
labelers_prepared = [f'{labeler_did};redact' for labeler_did in labeler_dids if labeler_did.startswith('did:')]
labelers_header_value = ','.join(labelers_prepared[:_MAX_LABELERS_COUNT])
labelers_header_value = ','.join(labelers_prepared)

self.request.add_additional_header(_ATPROTO_ACCEPT_LABELERS_HEADER, labelers_header_value)

Expand Down

0 comments on commit 37e6c8e

Please sign in to comment.