1
0
Fork 0

First draft async imports.

This commit is contained in:
Adam Kelly 2020-04-20 17:10:19 +01:00
parent bba63e3515
commit 881cc4d64b
8 changed files with 57 additions and 56 deletions

View file

@ -203,6 +203,7 @@ def handle_import_books(user, items):
status.status_type = 'Update'
status.save()
create_notification(user, 'IMPORT_RESULT', related_status=status)
create_activity = activitypub.get_create(
user, activitypub.get_status(status))
broadcast(user, create_activity)
@ -356,4 +357,3 @@ def handle_update_user(user):
actor = activitypub.get_actor(user)
update_activity = activitypub.get_update(user, actor)
broadcast(user, update_activity)