forked from mirrors/bookwyrm
Fixes bug in outgoing shelve serialization
This commit is contained in:
parent
23b045d7f7
commit
10d18cc633
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ def handle_reject(user, to_follow, relationship):
|
|||
def handle_shelve(user, book, shelf):
|
||||
''' a local user is getting a book put on their shelf '''
|
||||
# update the database
|
||||
shelve = models.ShelfBook(book=book, shelf=shelf, added_by=user).save()
|
||||
shelve = models.ShelfBook(book=book, shelf=shelf, added_by=user)
|
||||
shelve.save()
|
||||
|
||||
broadcast(user, shelve.to_add_activity(user))
|
||||
|
||||
|
|
Loading…
Reference in a new issue