1
0
Fork 0

Merge pull request #150 from cthulahoops/async_import

Async import
This commit is contained in:
Mouse Reeve 2020-04-27 10:15:43 -07:00 committed by GitHub
commit 4f9edae05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 423 additions and 174 deletions

View file

@ -158,7 +158,7 @@ def handle_shelve(user, book, shelf):
activity = activitypub.get_status(status)
create_activity = activitypub.get_create(user, activity)
broadcast(user, create_activity, recipients)
broadcast(user, create_activity)
def handle_unshelve(user, book, shelf):
@ -206,6 +206,7 @@ def handle_import_books(user, items):
create_activity = activitypub.get_create(
user, activitypub.get_status(status))
broadcast(user, create_activity)
return status
def handle_rate(user, book, rating):