Endpoint for status
This commit is contained in:
parent
8aba8e80e4
commit
8bd566bccb
6 changed files with 53 additions and 16 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue