1
0
Fork 0

more todos and cleanup

This commit is contained in:
Mouse Reeve 2020-02-07 15:29:11 -08:00
parent 3998c662cc
commit 96ebb43235
3 changed files with 20 additions and 4 deletions

View file

@ -19,11 +19,15 @@ def get_or_create_remote_user(actor):
except models.User.DoesNotExist:
pass
# TODO: also bring in the user's prevous reviews and books
# load the user's info from the actor url
response = requests.get(
actor,
headers={'Accept': 'application/activity+json'}
)
if not response.ok:
response.raise_for_status()
data = response.json()
# the webfinger format for the username.