Cleaning up model fields
This commit is contained in:
parent
906aa317c9
commit
5cd43d53ba
8 changed files with 50 additions and 62 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue