Skip to content

Commit

Permalink
add new required did field to describeServer output
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Mar 11, 2024
1 parent 4d3c17f commit c86334d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arroba/xrpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def refresh_session(input, did=None, commit=None):
@server.server.method('com.atproto.server.describeServer')
def describe_server(input):
"""Handler for ``com.atproto.server.describeServer`` XRPC method."""
return {'availableUserDomains': []}
return {
'availableUserDomains': [],
# what is this for?! bsky.social sets it to did:web:bsky.social
# https://github.com/bluesky-social/atproto/pull/2170#pullrequestreview-1889553896
'did': f'did:web:{os.environ["PDS_HOST"]}',
}


@server.server.method('com.atproto.server.getAccountInviteCodes')
Expand Down

0 comments on commit c86334d

Please sign in to comment.