A couple bugs in loading authors
This commit is contained in:
parent
e9393ede28
commit
3a8d84e9b1
2 changed files with 8 additions and 1 deletions
|
@ -150,7 +150,12 @@ class Connector(AbstractConnector):
|
|||
except ObjectDoesNotExist:
|
||||
pass
|
||||
|
||||
resp = requests.get('%s/authors/%s.json' % (self.base_url, remote_id))
|
||||
resp = requests.get(
|
||||
remote_id,
|
||||
headers={
|
||||
'Accept': 'application/activity+json; charset=utf-8',
|
||||
},
|
||||
)
|
||||
if not resp.ok:
|
||||
resp.raise_for_status()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue