1
0
Fork 0

Cleaning up model fields

This commit is contained in:
Mouse Reeve 2020-02-15 14:38:46 -08:00
parent 906aa317c9
commit 5cd43d53ba
8 changed files with 50 additions and 62 deletions

View file

@ -158,7 +158,8 @@ def handle_shelve(user, book, shelf):
'target': {
'type': 'Collection',
'name': shelf.name,
'id': shelf.activitypub_id
'id': 'https://%s/user/%s/shelf/%s' % \
(DOMAIN, user.localname, shelf.identifier)
}
}
recipients = get_recipients(user, 'public')
@ -202,7 +203,8 @@ def handle_unshelve(user, book, shelf):
'target': {
'type': 'Collection',
'name': shelf.name,
'id': shelf.activitypub_id
'id': 'https://%s/user/%s/shelf/%s' % \
(DOMAIN, user.localname, shelf.identifier)
}
}
recipients = get_recipients(user, 'public')