From c86334dfccd705e55172aa3e88324017ff4516af Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Mon, 11 Mar 2024 15:11:07 -0700 Subject: [PATCH] add new required did field to describeServer output https://github.com/bluesky-social/atproto/pull/2170#pullrequestreview-1889553896 --- arroba/xrpc_server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arroba/xrpc_server.py b/arroba/xrpc_server.py index 19398f6..0862117 100644 --- a/arroba/xrpc_server.py +++ b/arroba/xrpc_server.py @@ -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')