don't let id be none on remote_user

This commit is contained in:
Mouse Reeve 2020-05-15 10:45:56 -07:00
parent a0507edcac
commit 1b48ca2f85

View file

@ -42,7 +42,7 @@ def get_or_create_remote_user(actor):
def create_remote_user(data):
''' parse the activitypub actor data into a user '''
actor = data.get('id')
actor = data['id']
actor_parts = urlparse(actor)
# the webfinger format for the username.