1
0
Fork 0

TODO cleanup

This commit is contained in:
Mouse Reeve 2020-02-14 22:19:57 -08:00
parent a0323ead33
commit c4549e9b17
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,6 @@ def get_or_create_remote_user(actor):
data = response.json()
# the webfinger format for the username.
# TODO: get the user's domain in a better way
actor_parts = urlparse(actor)
username = '%s@%s' % (actor_parts.path.split('/')[-1], actor_parts.netloc)
shared_inbox = data.get('endpoints').get('sharedInbox') if \
@ -40,7 +39,7 @@ def get_or_create_remote_user(actor):
inbox=data['inbox'], #fail if there's no inbox
outbox=data['outbox'], # fail if there's no outbox
shared_inbox=shared_inbox,
# TODO: probably shouldn't bother to store this for remote users
# TODO: I'm never actually using this for remote users
public_key=data.get('publicKey').get('publicKeyPem'),
local=False
)