1
0
Fork 0

Endpoint for status

This commit is contained in:
Mouse Reeve 2020-02-15 12:32:40 -08:00
parent 8aba8e80e4
commit 8bd566bccb
6 changed files with 53 additions and 16 deletions

View file

@ -252,8 +252,10 @@ def handle_review(user, book, name, content, rating):
}
}
}
review.activity = review_activity
review.save()
activity = {
create_activity = {
'@context': 'https://www.w3.org/ns/activitystreams',
'id': '%s/activity' % review_path,
@ -269,5 +271,5 @@ def handle_review(user, book, name, content, rating):
}
recipients = get_recipients(user, 'public')
broadcast(user, activity, recipients)
broadcast(user, create_activity, recipients)