Skip to content

Commit

Permalink
ATProto.set_username bug fix, don't set the user's obj to their bridg…
Browse files Browse the repository at this point in the history
…ed DID doc 🤦

for #1474
  • Loading branch information
snarfed committed Nov 14, 2024
1 parent b6fc899 commit faea8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def set_username(to_cls, user, username):
arroba.server.storage.write_event(repo=repo, type='identity', handle=username)

# refresh our stored DID doc
user.obj = to_cls.load(copy_did, did_doc=True, remote=True)
to_cls.load(copy_did, did_doc=True, remote=True)

@classmethod
def send(to_cls, obj, url, from_user=None, orig_obj_id=None):
Expand Down

0 comments on commit faea8ce

Please sign in to comment.