fetch_posts.py: support Wordpress ActivityPub plugin
This commit is contained in:
parent
0ca511e848
commit
f58d85635a
|
@ -185,7 +185,7 @@ class PostFetcher:
|
||||||
outbox_url = profile['outbox']
|
outbox_url = profile['outbox']
|
||||||
|
|
||||||
async with self._http.get(outbox_url) as resp: outbox = await resp.json()
|
async with self._http.get(outbox_url) as resp: outbox = await resp.json()
|
||||||
assert outbox['type'] == 'OrderedCollection'
|
assert outbox['type'] in {'OrderedCollection', 'OrderedCollectionPage'}
|
||||||
return outbox
|
return outbox
|
||||||
|
|
||||||
async def _finger_actor(self, username, instance):
|
async def _finger_actor(self, username, instance):
|
||||||
|
|
Loading…
Reference in New Issue