more todos and cleanup
This commit is contained in:
parent
3998c662cc
commit
96ebb43235
3 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue