1
0
Fork 0

Use compose tabs in book page

Fixes #144
This commit is contained in:
Mouse Reeve 2020-04-21 08:01:54 -07:00
parent 94e66829b8
commit 52651fdaa0
5 changed files with 16 additions and 21 deletions

View file

@ -75,13 +75,13 @@ def get_avatar(data):
def get_remote_reviews(user):
''' ingest reviews by a new remote fedireads user '''
# TODO: use the server as the data source instead of OL
outbox_page = user.outbox + '?page=true'
response = requests.get(
outbox_page,
headers={'Accept': 'application/activity+json'}
)
data = response.json()
# TODO: pagination?
for status in data['orderedItems']:
if status.get('fedireadsType') == 'Review':
create_review_from_activity(user, status)